Re:Rust on the ESP32 (2019)
by pjmlp on Sunday July 05, 2020 @09:21AM
(#23738452)
Even C needs more love from the embedded industry, given how many still use C89 dialects, even if the tooling might already support something better, let alone languages that attempt to replace C.
[ Parent
| on HN ]
C versions after 89 doesn't bring much to be honest.
So either you want more than what C can offer you, and usually the option is C++, or you're fine with what you have.
Bieng able to declare variables after statements in a function is huge, letting you make them const as needed.
Also declaring the index variable in a for loop like for(int i =0; i < 10; i++) is extremely helpful.
Those two alone are extremely beneficial.
True, they are however often available as part of compiler extensions.