4 ms·
"C/C++" isn't a language.
by markrages 12y ago
"C/C++" isn't a language.
- dragonwriter 12y ago> "C/C++" isn't a language. Under the current standards, isn't C a proper subset of C++, and therefore, isn't "C/C++" just a way of saying "C++" that emphasizes that that includes C? Or are you saying C++ isn't a language?
- readerrrr 12y agoSubset? No. Neither language is a subset of the other. "C/C++" is a word coined by recruiters/human resources department.
- bnegreve 12y agoC isn't a subset of C++ (eg see [1]) but more importantly proper C++ has very little to do with C. In my experience people use "C/C++" to refer to "C with class compiled with a C++ compiler" rather than to "C or C++". [1] http://stackoverflow.com/questions/1201593/c-subset-of-c-where-not-examples http://stackoverflow.com/questions/1201593/c-subset-of-c-whe...
- dragonwriter 12y agoI had thought I remembered reading somewhere that C++11 had made C++ a superset of C (I haven't used C++ in anger in quite a long time), but from further reading while it has closer aligned with C it hasn't actually subsumed it.
- bstamour 12y agoModern C and modern C++ are closer to siblings now, with the parent being K&R C. Each has added features that the other has not embraced, and writing code in one like you would in the other is a recipe for pain and suffering.
- markrages 12y agoMy point wasn't the language-lawyer one. C and C++ are very different philosophically. Minimalism vs. "maximalism". The subjective experience of writing C and C++ is totally different, so I wonder at programmers who say they write "C/C++".