2 ms·
I'm really glad people do lump C and C++ together, because the tiny fraction of the C language which is not a proper subset of C++ affects life very little in p
by marssaxman 11y ago
I'm really glad people do lump C and C++ together, because the tiny fraction of the C language which is not a proper subset of C++ affects life very little in practice. C++ is a multiparadigm language and it is completely reasonable to use it like one uses C, if that's what suits your need and environment.
In embedded firmware development, for example, one often simply can't afford the RAM it would take to run a malloc/free heap, and may have hard realtime constraints that would preclude the use of dynamic memory management even if more RAM were available. It may still be worth using C++ for such systems even if you're writing functions-and-pointers style code like you would in C, because namespaces and class/struct encapsulation are useful tools on their own.