Hacker News new | ask | show | jobs
by TorKlingberg 3358 days ago
I wouldn't call them "fully separate". Mixed C/C++ codebases are still fairly common, which works as long as the interface between them is in C.
2 comments

Mixed C, Objective C and C++ code-bases are still fairly common. That's not to say they're the same language.
Well, your argument doesn't really prove anything, as Obj-C is actually much closer to C than C++ is.
They have separate ISO standards. IMO, this makes them fully separate.

C - ISO/IEC 9899:2011

C++ - ISO/IEC 14882:2014

But the standards have made some effort at avoiding gratuitous incompatibility, and have even introduced changes to reflect changes in the other standard.

Also, much C code is still valid C++. Sure, you can write code that isn't, but I would guess (pulls a number out of nowhere) that 90% of the valid C code is also valid C++.

That makes them languages that have separate standards, but not completely independent standards, that share a whole lot of source code. That's something less than fully separate in my book.