[zeromq-dev] Making language bindings work with both maint andmaster

Joshua Foster jhawk28 at gmail.com
Sun Oct 3 14:05:12 CEST 2010


Keeping track of versions and the changes would end up being more work if it was managed in code. While it may be a little simpler for someone to just download a package that just works (which should be the latest), it would make the code start fragmenting with if/else for the versions:
if version == "2.0.9"
 // use the 2.0.9 code
else if version >= "2.0.10"
 // use 2.0.10 code

It keeps the code cleaner if we just let the SCM manage it, especially since branches and tags are really simple. If you want to make sure that the user has an easy download for their version of ZMQ, release the binding with the same ZMQ versioning in its name.

Joshua


On Oct 3, 2010, at 5:39 AM, Mikko Koppanen wrote:

> On Sun, Oct 3, 2010 at 6:18 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:
>> Joshua,
>> 
>> That may actually work.
>> 
>> Thoughts anyone?
>> 
> 
> Hi,
> 
> my 2 cents:
> 
> this might be more work the bindings maintainers and the users of the
> bindings. What I assume users want is to download a single source
> package of the bindings and it should 'just work' with a certain
> minimum version of 0MQ. Having a single source package that works with
> multiple 0MQ versions (within reason) would also help on deploying to
> an environment with mixed 0MQ versions, as the user can use single
> package rather than multiple ones.
> 
> My original plan was to provide a single source package, set a minimum
> required version of 0MQ and the bindings would 'just work' with
> versions from there up.
> 
> -- 
> Mikko Koppanen
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list