28 ms·
What other people are saying about it being a shorthand for similar languages, but also... C/C++ is a coherent thing to write a single program in. You write so
by gpm 4y ago
What other people are saying about it being a shorthand for similar languages, but also...
C/C++ is a coherent thing to write a single program in. You write some files with a .c extension and compile with gcc, some with c++ and compile with g++, and as long as you're careful in your header files everything works out just fine. People have actually done this, and because C isn't a subset you end up with C files that you can't compile as C++ and you really do have a heterogeneous project.
Haskell/Ocaml isn't comparable.
- ncmncm 4y agoHaskell and OCaml both have FFI, and means exposing C function symbols, so can call one another. It is not the same as between C and C++, but it is comparable. But more to the point, it is fully as absurd in the cited context.