2 ms·
> This personal assertion ignores the fact that there are plenty of alternatives that considerably improve over C++, let alone C (?!) While it is easy to impro
by lelanthran 4y ago
> This personal assertion ignores the fact that there are plenty of alternatives that considerably improve over C++, let alone C (?!)
While it is easy to improve on C++ it's proven difficult to improve on C[1].
C++ is an exceptionally large language, with lots of features that interact in subtle ways which trip-up even experienced programmers from time to time. It includes all the footguns from C, and adds an order of magnitude more.
C is a dead-simple language with only a few really dangerous footguns (which are also present in C++), mostly related to memory errors (corruption, leaks, races, etc).
I view C++ as "C with more footguns".
I view Go as "C without the memory error issues".
It's not really comparable to C++ because it is a better C, not a better C++.
[1] I think that only Go has managed to improve on C.