3 ms·
I 100% agree with the first part, "undefined behavior" should have never become an excuse for the compiler authors to remove error handling from our code as an
by juliangmp 2y ago
I 100% agree with the first part, "undefined behavior" should have never become an excuse for the compiler authors to remove error handling from our code as an "optimization".
But its still beyond me how in decades of programming the C people somehow haven't had the idea of a pointer+size type.
Whether you call it a slice, span or a view, doesn't matter. Why do I have to manually pass a size everywhere, it's such a common case, why is there not a common solution??
Are the people writing the standard just afraid of change? Seems to me, especially when it comes to things that could resemble new syntax.
Sidenote why does _Atomic look like that?