Re:Mental models around Ok-Wrapping
by whelming_wave on Friday April 10, 2020 @07:50PM
(#22838553)
I've found this kind of pattern much nicer in an application context. Rust sort of has this going on with anyhow[1] for applications and thiserror[2] for libraries (or just writing your own Error type).
[1]: https://crates.io/crates/anyhow
[2]: https://crates.io/crates/thiserror