News for hackers. Stuff that matters.
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.
Re:Rust on the ESP32 (2019) by Leherenn on Sunday July 05, 2020 @11:56AM (#23739611)
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.
Re:Rust on the ESP32 (2019) by hak8or on Sunday July 05, 2020 @03:06PM (#23741049)
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.

Re:Rust on the ESP32 (2019) by Leherenn on Monday July 06, 2020 @02:25AM (#23745220)
True, they are however often available as part of compiler extensions.
Re:Rust on the ESP32 (2019) by pjmlp on Sunday July 05, 2020 @02:29PM (#23740774)
Well, they are supposed to at least offer a little more of security.

And yes, C++ would be a better option, provided that up to date C++ compilers exist at all.