2 ms·
> There is probably someone who is going to say, “Well you can write C code in a C++ program, so technically C is a subset of C++.” The only problem is that you
by yjftsjthsd-h 4y ago
> There is probably someone who is going to say, “Well you can write C code in a C++ program, so technically C is a subset of C++.” The only problem is that you can write C code in Zig, Go, Nim, and basically almost every other language out there has a C FFI! So should I refer to Zig, Go, and Nim as C/Zig, C/Go, and C/Nim? Obviously no.
I'm sympathetic to the overall view here (not sure I agree, just that I understand it), but this a terrible argument. People say that you can write C code in a C++ program because it doesn't need FFI. You just write in the shared subset that is legal C and legal C++, and then - and this is kind of the point - you feed it into either compiler and it works.