Rust *always* panics on index out of bounds, FWIW (unless you use unsafe and bypass that, but that's rare).
Not true. You just have to hide operator[], as is done by untrusted here: https://briansmith.org/rustdoc/src/untrusted/untrusted.rs.html#301 …. See also https://github.com/rust-lang/rust/issues/35729#issuecomment-280872145 ….
-
-
Well it depends on what we mean by "a bug rust code can have" then. .get().unwrap() does the same.
-
plz untag me
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.