3 ms·
Forgive me if I'm being a bit presumptuous here, but it feels like "C and C++ have diverged so saying 'C/C++' is now wrong" is now one of those viral sentiments
by resonious 4y ago
Forgive me if I'm being a bit presumptuous here, but it feels like "C and C++ have diverged so saying 'C/C++' is now wrong" is now one of those viral sentiments that people just fling around. Like "ah! he said C/C++! gotta call him out". Perhaps that's not what you're doing here, but I think it's completely fair to say that C and C++ have language footguns, even if they have diverged. Objective-C/Swift probably also have footguns ;)
- Conscat 4y agoIf the specific statement meaningfully applies to both C and C++, as it does here, I think it's completely valid to write C/C++. And I say that as a fairly advanced C++ boutique templates author. https://github.com/Cons-Cat/libCat/blob/main/src/libraries/allocator/cat/allocator https://github.com/Cons-Cat/libCat/blob/main/src/libraries/a...
- waynecochran 4y agoThere was a time when C++ was merely "C with Objects." Those days are long gone. Those have been the two primary languages of my long career. The modern C++ I write today bears some similarities, but it like saying Latin/English.
- resonious 4y agoI'm well aware of the explanation. I've seen it numerous of times in almost the exact same wording across HN and elsewhere.
- pjmlp 4y agoFor me those days are only gone on my hobby coding and conference talks. Have some fun reading the code of Windows SDK C++ libraries, Android, or plenty of C++ libraries used in enterprise shops, plugged into managed languages.
- flohofwoe 4y agoI started to use "C/C++" specifically for the bastard-language which is called the 'common subset' of C and C++.