Is std::ops::Index just a historical artefact?

I’d also like in std a set of unsafe functions similar to get_unchecked/get_unchecked_mut that contain a debug_assert!() that gives a out of bounds error only in debug mode.

This, and I recommend we call them get_unchecked and get_unchecked_mut.

:duck:

4 Likes