[zeromq-dev] C++ syntax for new ZMQ objects
Pieter Hintjens
ph at imatix.com
Sat Dec 15 15:49:13 CET 2012
On Sat, Dec 15, 2012 at 10:18 AM, Claudio Carbone <erupter at libero.it> wrote:
> I got it now, it's easy looking at the C++ headers:
> the C++ bindings are just a C++ styled wrapper of the underlying C
> functions.
> So the functionality and concept of C is maintained in a C++ syntax.
> May I ask what was the reasoning behind this?
The straight C semantics are easiest to map to arbitrary languages.
The C++ binding could have built abstractions on top but never
accomplished this. Ironically the C binding (CZMQ) is somewhat
higher-level than the C++ binding.
-Pieter
More information about the zeromq-dev
mailing list