Rust's Result Type is Cool
If you've worked with Rust before, you know how different its error handling story is from most other languages. The Rust Programming Language explains the two primary ways of raising errors, panicking and the
Result
type, and how you can propagate theResult
type with the?
operator to make recoverable errors explicit without interfering with the happy path in a certain function.
Source: Rust's Result Type is Cool, an article by Eshan Singh.