[zeromq-dev] Zero MQ Wrapper APi language binding convention

Patrick Marques patrickfmarques at gmail.com
Mon Sep 19 11:02:20 CEST 2011

I have another question about bindings, in the code style you write "C++
exceptions are not to be used within the core codebase".
I've asked to  gonzus (Gonzalo Diethelm) on its java binding why don't use
exceptions to give the "error" of unimplemented operations (on this thread
What is your opinion about this? Exceptions are quite heavy but on this case
for something that we expect never occurs, specially on this case, where the
operation are not supported (for instance, due to support version 2 and 3).
Return -1 can give the ideia that this was working og worse int sets where
nothing was done, (return forced, for instance


On Sun, Sep 18, 2011 at 2:57 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Hi Gary,
> > With regard to the language bindings, I have a managed C++ wrapper that
> > is a facade over the DLL and then I am writing the actual C# and
> > hopefully F# bindings using the managed C++ wrapper. I am doing this
> > mainly because of the god awful code you have to write in C# to access
> > the libzmq.dll.
> That's nice. Are you going to make it available?
> > As long as I follow the naming conventions etc. does this meet the
> > spirit of the established language conventions?
> All the bindings are compromises between keeping close to native 0MQ API
> and adhering to idioms of the particular language. It's up to you as a
> binding author to balance the two.
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110919/ef26b2fb/attachment.htm>

More information about the zeromq-dev mailing list