3 ms·
No necessarily. Rust doesn't do that for array indexing (though bound checking is enabled at runtime and will panic if out of bounds), division by zero, numeric
by brabel 3y ago
No necessarily. Rust doesn't do that for array indexing (though bound checking is enabled at runtime and will panic if out of bounds), division by zero, numeric overflow and probably many cases where it was deemed to be just too cumbersome.
- truculent 3y agoTrue, but iirc Rust also supplies a `get` method for when you want to get elements safely.