3 ms·
There is no language called C/C++. There is C, and there is C++. The answers are qualitatively different for the two languages, so conflating them, in any conte
by ncmncm 8y ago
There is no language called C/C++. There is C, and there is C++. The answers are qualitatively different for the two languages, so conflating them, in any context, can only ever produce confusion, noise, and misery.
The answer is that C++ is replacing C anywhere C is not dug in too deeply -- mainly OSes conceived long before C++ stabilized, and specialized embedded environments where manufacturers are actively hostile to change. Rust is also replacing C, in the same places, but of course still overwhelmingly more slowly. In a few places, Rust is used where C++ would have been, such as in Mozilla's page rendering, but the difference between Rust's and C++'s expressiveness is not, generally, big enough to overcome structural drivers. Both are so overwhelming better in every conceivable way than C that only inertia maintains any remaining niches for C. It is just so overwhelming better to code Rust or C++ than C, and so much very much C, that there is no need for either Rust or C++ to see the other as competition.
In the future, Rust and C++ may come into competition, but today it is more like motorcycles vs tractor-trailers. (Back in the '90s Jonathan Schwartz compared C++ to another language, saying if the other was like a seaplane, C++ was more like a boat anchor with feathers.) C++ still has historical baggage Rust lacks, but that is changing. C++ is getting better very fast, so that Rust is chasing a moving target.
- pjmlp 8y ago> There is no language called C/C++. I love how people are pedantic with a term that the respective ISO members use on their official communication. Just go search the mailing lists and papers. Oh, and then there was the "The C User's Journal" that got renamed as "The C/C++ User's Journal" when C++ started to be adopted across all C compiler vendors. C/C++ is just an abbreviation to C and C++.
- hawski 8y agoPractically C/C++ means C++ and sporadically C++ first and C second. When you see a job offer for a C/C++ programmer you can safely assume that nobody cares for the literal C part. It all depends on context, in this case I agree with you.