| That's why DasBetterC has done very well! You could call it C with array bounds checking. I occasionally look at statistics on the sources of bugs and security problems in released software. Array bounds overflows far and away are the top cause. Why aren't people just sick of array overflows? In the latest C and C++ versions, all kinds of new features are trumpeted, but again no progress on array overflows. I can confidently say that in the 2 decades of D in production use, the incidence of array overflows has dropped to essentially zero. (To trigger a runtime array overflow, you have to write @system code and throw a compiler switch.) The solution for C I proposed is backwards compatible, and does not make existing code slower. It would be the greatest feature added to C, singularly worth more than all the other stuff in C23. |
As for WG14, I have no hope, they ignored several proposals, and seem keen in having C being as safe as hand writing Assembly code, and even then, Assembly tends to be safer, as UB only happens when doing something the CPU did not expect, macro assemblers don't do clever optimizations.