3 ms·
You end up having to turn a lot of C++ features off in order to get the experience you want in certain environments. In an application running on a modern Windo
by klodolph 3y ago
You end up having to turn a lot of C++ features off in order to get the experience you want in certain environments. In an application running on a modern Windows/Linux/Mac system, it’s no big deal to use those features.
Some platforms also just don’t have C++ compilers. Yes, they still exist. You buy some microcontroller, download an IDE from the manufacturer's web site, and you get some version of C with a couple extensions to it. And then there are all the random incompatibilities between C and C++, where C code doesn’t compile as C++, or gives you a different result.
- jcelerier 3y agoWhat's "a lot of features" ? -fno-rtti, -fno-exceptions? > Some platforms also just don’t have C++ compilers It's not like they're going to have C23 compilers either
- klodolph 3y agoC++ has a lot of funny rules when it comes to constructors and initializers. It's easy to accidentally to do something unintended, and end up with code that relies on initialization order.
- flohofwoe 3y ago> It's not like they're going to have C23 compilers either Niche compilers like SDCC (https://sdcc.sourceforge.net/ https://sdcc.sourceforge.net/) are actually keeping track of recent C language improvements quite well.