What is Nostr?
Mo :ferris: :tux: @ FOSDEM /
npub1j7f…mapy
2023-09-02 00:04:50
in reply to nevent1q…48uk

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.
Author Public Key
npub1j7fc87rk03whjh72mphc9hrm8zecfsdywdcscsesznwzcrasudvs75mapy