Re:Why should I have written ZeroMQ in C, not C++ (2012)
by eropple on Thursday May 21, 2015 @12:35AM
(#9580982)
Templates can be abused, but there's real value to simple ones such as container classes and even shared_ptr and unique_ptr. The subset of C++ I personally use is pretty small, but I hope I never go back to manual memory babysitting.
Re:Why should I have written ZeroMQ in C, not C++ (2012)
by waps on Thursday May 21, 2015 @12:36AM
(#9580986)
Templates are the main thing in C++ that you can easily use everywhere with zero costs in compatibility.
And they certainly beat C's "equivalent", macros.
Re:Why should I have written ZeroMQ in C, not C++ (2012)
by Shorel on Thursday May 21, 2015 @06:04AM
(#9581771)
You can use macros with C++
That's what wxWidgets did since forever, and to the dismay of C++ purists, I find their code easier to read than most templates.
Not to mention it compiles much faster.
Just switching compilers makes the C code more robust.