Re:Data structures and Algorithms in C/C++11
by _RPM on Wednesday December 03, 2014 @08:39PM
(#8697457)
There is no language called C/C++11 . Why do people insist on suggesting that these two languages are the same?
[ Parent
| on HN ]
Re:Data structures and Algorithms in C/C++11
by deathanatos on Wednesday December 03, 2014 @08:50PM
(#8697490)
I 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.
Re:Data structures and Algorithms in C/C++11
by _RPM on Wednesday December 03, 2014 @08:59PM
(#8697507)
You 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.
Re:Data structures and Algorithms in C/C++11
by deathanatos on Thursday December 04, 2014 @05:35PM
(#8702149)
> 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.