6 ms·
> index out-of-bound issues You sure about that? You can still get Rust to panic if you try to index a vec past the end...
by rmc 10y ago
> index out-of-bound issues
You sure about that? You can still get Rust to panic if you try to index a vec past the end...
- steveklabnik 10y agoA panic is significantly different than an actual out of bound access; the latter is the cause of a lot of issues, but a panic is preventing those issues.
- rmc 10y agoAh I get you! You can't read past the end of an array, but you can get an error.
- steveklabnik 10y agoExactly!
- deleted 10y ago[deleted]