3 ms·
Kind of disingenuous to compare FFI in other languages with the fact that a lot of everyday C code can be compiled as C++ code without issue (even though C isn'
by ummonk 3y ago
Kind of disingenuous to compare FFI in other languages with the fact that a lot of everyday C code can be compiled as C++ code without issue (even though C isn't strictly a proper subset of C++, in actual practice it very nearly is - no one actually writes K&R style code for example).
I do agree that they're very different, and should not be conflated (and I'm one of those programmers who will happily code C but despises coding in C++), but there is definitely a clear connection between the two, just as there is between C and Objective C.
Also, that maximumCount example in C++ is unreadable not because it's C++ code, but because the author has deliberately tried to be extra clever in writing it.