Why Nostr? What is Njump?
2024-05-22 08:56:31

Lesley Lai on Nostr: #rust question: do you consider returning a `Result<Option<SOmething>, SomeError>` ...

#rust question: do you consider returning a `Result<Option<SOmething>, SomeError>` anti-pattern? Should I just flatten it into `Result<Something, SomeError>`? The previous approach works great with question marks

#rustlang
Author Public Key
npub1lekwvsphklcrd26p4057lq8pkztrsrpkrpcu9skvfkn6nrsjl8cqzx73gf