3 ms·
We specifically recommend against providing panicing and non-panicking. This causes horrible combinatoric explosions. There's very few exceptions to this (array
by Gankro 11y ago
We specifically recommend against providing panicing and non-panicking. This causes horrible combinatoric explosions. There's very few exceptions to this (array indexing being the major exception). We do of course recommend non-panicking, but there's a few cases where the burden of checking for errors is too high (indexing, refcell).
We're actually in the midst of arguing whether to violate this convention and do it for RefCell: https://github.com/rust-lang/rust/issues/27733 https://github.com/rust-lang/rust/issues/27733
- steveklabnik 11y agoYeah, I was thinking of things like array access. The stuff that's on the wrong end of the cost/benefit ratio.