Mo :ferris: :tux: @ FOSDEM on Nostr: npub1eqghr…6fncn I thought about disallowing indexing with [i] in a future version ...
npub1eqghrdelwyf920kghgwlmkjve6ptgnjy3jzkpfvxjmmjsh4em83sq6fncn (npub1eqg…fncn) I thought about disallowing indexing with [i] in a future version so one would need to use get.
But I never thought about making [i] indexing just return an Option. That sounds like a very good idea! It would just be changing the Index and IndexMut traits to return an Option. Something editions can handle well.
But I never thought about making [i] indexing just return an Option. That sounds like a very good idea! It would just be changing the Index and IndexMut traits to return an Option. Something editions can handle well.