3 ms·
Backward compatibility is a hard problem. Look at rust, or python, those are great languages, but obviously you need a new compiler and you need to write new c
by jokoon 8y ago
Backward compatibility is a hard problem.
Look at rust, or python, those are great languages, but obviously you need a new compiler and you need to write new code.
With C++, you can just add new code to an existing code base, and share that code across projects.
What is nice is that the language is evolving, but previous code still works. So the problem with C++, is adding new cool features, on an existing language, while not breaking existing code bases.
That's how you improve a language, by keeping its users while adding new better ways of doing things.
I honestly don't think rust or go will really survive over the decades. C++ already has momentum, and honestly, its close-to-C syntax is still a good thing because it's intuitive. How down-to-earth simple do you think go or rust are for students? How do you wrap your head around having to explain students the purpose of a garbage collector, not to mention how it will behave and how predictable it will be?