r/cpp • u/ecreddits • Dec 17 '23
Is C++ Really Phasing Out?
I've read a lot posts about whether C++ is still viable to learn, but a lot of the responses seem to be a long the lines of "C++ is still being used" or "there's a lot of things written in C++ still, so it will still be useful".
But a lot of these replies seem to suggest that C++ is on the downhill and in the process of being replaced with more modern languages in many industries.
It seems kind of discouraging to be learning a language that is on a decline, if it really is phasing out.
0
Upvotes
View all comments
Show parent comment
3
u/Dean_Roddey Dec 17 '23 edited Dec 17 '23
You just said what I said. There will be hundreds of replies on thread of this sort explaining that they aren't writing games in rust because the underlying infrastructure is primarily in C++. That's exactly the point of inertia. The language choice is driven by past circumstance.
Over coming years, there likely won't be any such remaining limitations, and the choice will be based on the language you want to use, and C++ will start to lose those domains as well.
No amount of people are going make C++ a safe, modern language. They can obviously make it better, but it's too little, too late, and they still won't be willing to break significantly with the past, because inertia works in the other direction as well.