----- Original Message ----- > On Mon, 2012-09-10 at 14:16 -0400, William Henry wrote: > > It looks very attractive. Any plans to include exceptions? > > I was debating exceptions: On the one hand I wanted a very slim layer > with no hidden code - what is there now will pretty much compile > directly in to the same code as the equivalent C code. On the other > error handling using exceptions is much more idiomatic for a fuller > C++ > interface.
Yep. +1 for exceptions. I don't think I'd worry about C++ code fitting in with the C code. > > > > > (I like the use of 'auto' keyword. Had not seen it in code like > > this before.) > > This is C++11 (the new version of the C++ language) which has type > inference built into the language. I wanted to make sure /demonstrate > that the bindings would work nicely with the new version of the > language > (as well as with the old version). > Yea that is cool. I haven't read up on the pros and cons of the feature but it looks cool. I could see some potential debates over maintainability/readability - "you don't know what type it's supposed to be when reading the code." etc. But I guess that's just a matter of preference. William > Andrew > > >
