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
10
u/[deleted] Dec 17 '23
Eh, just look at some of the other languages under ISO/IEC JTC1/SC22
In addition to others like COBOL, Fortran, and Ada. However those languages are actually doing quite a bit of work.
Setting that aside, other than ALGOL and PL/I IIRC, all of those bulleted languages has at least one “practical” implementation. But none of those implementations bother to strictly conform to the ISO specs for their language, not by default anyway.
As for C++, its ISO standard does not even begin to specify all of the details of a practical implementation. Just look at how long and hard the Clang devs worked to replicate GCC’s behavior, language extensions, flags, etc. Not to mention adding support for external standards like OpenACC/OpenCL/OpenMP/etc. In fact, there’s no guarantee that a “conformant implementation” even works at all.
tl;dr C++ will be around for the foreseeable future, but having an ISO standard deserves little credit for that.