3 ms·
Because a language happily letting you try to access an array index far past its end isn't stupid at all.
by UltraSane 11mo ago
Because a language happily letting you try to access an array index far past its end isn't stupid at all.
- otabdeveloper4 11mo agoIf this was a real problem then you could have just `s/[]/at()/g` across your codebase and called it a day. But you all don't even bother to do that, so I guess it's not actually a problem in practice.
- UltraSane 11mo agoC doesn't have any protection for accessing out of bounds. It does zero bounds checking behind the scenes. Which is actually really, REALLY stupid. And when all computers are connected to the internet this is disastrous.
- otabdeveloper4 11mo ago> It does zero bounds checking behind the scenes. Thankfully you can fix that with one sed command. Why don't you?