4 ms·
If you use C++ as "C with Classes", it is a fantastic C replacement. Just stick to 'struct's instead of 'class'es, use ctor/dtor for RAII, pure virtual functio
by abcd_f 9y ago
If you use C++ as "C with Classes", it is a fantastic C replacement.
Just stick to 'struct's instead of 'class'es, use ctor/dtor for RAII, pure virtual functions to declare interfaces and single-level inheritance to implement them and, perhaps, an occasional template to replace a macro - and you still basically have C, but it's now far less verbose and more pleasant to use.
- jstewartmobile 9y agoFair enough, but how many train wrecks did you have to witness to come to that conclusion?
- abcd_f 9y agoHehe... in my case there was some oscillation between C and C++ before eventually converging to C-style C++. To each his own. I even heard of people who thought Boost was a good thing, but I suspect someone was making a joke.
- AstralStorm 9y agoBoost is being surpassed by new standards though. Most of the truly and widely useful stuff from boost is being reimplemented in a much cleaner way for standard library. It can be considered proving ground.