I get people don't like classes / templates / .. but there isn't any reason one has to use those.
I get people don't like classes / templates / .. but there isn't any reason one has to use those.
Because they're orthogonal, and making function bodies less verbose with no loss of expressivity is nice, without needing to significantly alter the language?
Pretty much every C competitor has local type inference, and C actually needs more than most due to the `struct` namespace, typing `struct Foo` everywhere is annoying, and needing to typedef everything to avoid it is ugly.
Also C++ is missing convenient C features, like not needing to cast `void*` pointers, and designated initialisers were only added in C++20.
And the people who say "I Just hover the variable in my IDE" It doesn't work in a terminal with grep, you can't hoved a diff file and not even github do the hover thing.
Combine that with the implicit type promotion rules of C. Have Fun.
Nonsense.
> Combine that with the implicit type promotio rules of C. Have Fun.
This sort of trivial TI does not make that any worse. C is broken, it neither breaks nor unbreaks C.
Second-best time to plant a tree, and all.
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.
> Some platforms also just don’t have C++ compilers
It's not like they're going to have C23 compilers either
Niche compilers like SDCC (https://sdcc.sourceforge.net/) are actually keeping track of recent C language improvements quite well.