but apart from some extra syntax sugar here, what more would you want from C anyway?
In avionics, we have to filter each source on MisraC validators. This means that the standard C language has too many degrees of freedom, and too many of them are poison traps.
Besides, people do usually abuse of these degrees of freedom offered by the standard C language, and sources do usually look ugly and crappy.
A native "Misra compliant C language" (we call it "safeC") would solve it.
I would also appreciated some new features grabbed from Ada (strong types, restricted counters, barriers, etc) and a minimal mechanism to facilitate OOP, because the C++ language offers too many, and it's too bloated.
Oh, and even something to avoid people to write "goto err;". When you see it in the C source of a serious operating system (e.g. Integrity OS, for which you have to pay 20K euro) ... it means that the C language does not offer any better alternative.
"Goto err:" has been found in
- Linux
- VxWorks
- NewOS (BeOS clone)
- Integrity OS
- ucOS/2
- XINU
- ...