Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"C/C++" isn't a language.


> "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?


Subset? No. Neither language is a subset of the other.

"C/C++" is a word coined by recruiters/human resources department.


C 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-whe...


I 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.


Modern 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.


My 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++".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: