2 ms·
The question is pretty weird in the first place. If I like a particular language, why would I automatically like some arbitrary superset of that language? But
by fauigerzigerk 15y ago
The question is pretty weird in the first place. If I like a particular language, why would I automatically like some arbitrary superset of that language?
But there are many practical reasons as well. One that hasn't been discussed much is exceptions. In order to use C++ libraries in C code you'd have to "RAIIfy" your entire codebase. That means wrapping all dynamic memory allocations in their own objects and replacing malloc with new. What's left of C after doing that?
Switching off exceptions on the compiler level isn't a viable solution either because it leads to undefined behavior.