2 ms·
There are still platforms with C compilers but no (or very bad) C++ compilers. It's much easier to write a decent C compiler than a C++ one.
by tsimionescu 5y ago
There are still platforms with C compilers but no (or very bad) C++ compilers. It's much easier to write a decent C compiler than a C++ one.
- gnubison 5y agoYeah. If you want your code to “just work” on stuff like the BSDs, then C (or an interpreter written in C) is still your best bet.
- ncmncm 5y agoThe set of such platforms that one might start a new project for is very limited. Maybe, flight computer in a Boeing 737 variant? Betting that has no C compiler. 8051? The BSDs have supported C++ user-space programs for long enough that "just working" should be well within range. A new project involving a BSD or Linux kernel subsystem, or PostgreSQL or SQLite component, is a plausible interpretation, where C++ is actually forbidden for wholly non-technical reasons.