3 ms·
There is no language called C/C++11 . Why do people insist on suggesting that these two languages are the same?
by _RPM 12y ago
There is no language called C/C++11 . Why do people insist on suggesting that these two languages are the same?
- deathanatos 12y agoI didn’t feel like the author was conflating them, merely that this repo is a mixed bag of sample code in both C and in C++. The Makefile appears to compile the .c files with a C compiler, and the C++ files with a C++ compiler. Also, the two languages, while certainly not the same language, do have parts in common, and do interoperate decently well together.
- _RPM 12y agoYou are right. They do "interoperate" fairly well together. It is kind of like a 64 bit Linux machine can run 32 bit binaries, but a 32 bit machine can't run 64 bit code. A C developer could probably be extremely productive in C++, but reverse this and it probably wouldn't be true. As a consequence of using all the abstraction that C++ provides, one cannot simply dive right into C and expect the same level of productivity.
- deathanatos 12y ago> As a consequence of using all the abstraction that C++ provides, one cannot simply dive right into C and expect the same level of productivity. Absolutely true. What I meant by "interoperate" is that it's decently easy to call C functions from C++; the other way is also possibly, but you more or less have to pass C types around, which limits productivity somewhat.