|
|
|
|
|
by pjmlp
3397 days ago
|
|
C++ provides the tools that C lacks for writing safer code. Of course it doesn't help if people write "C with C++ compiler" and better alternatives are desired, where copy-pasting C code is not possible. Eventually one of the current candidates will won over the roles of C and C++, except for environments married with C, like UNIX derivatives. Until then, when the choice boils down only to C vs C++, there is no question that in regards to language features for writing safer code, C++ is the only possible answer. |
|
I'm not sure anybody targets C++ as an intermediate language when emitting code at this level. (I do have written some code that emits some C++, but at a wildly different and higher level). I'm not sure this would bring any value.