4 ms·
We are seing lots of .unwrap() because Rust has no monadic notation. That replaces recoverable errors with crash.
by p0nce 11y ago
We are seing lots of .unwrap() because Rust has no monadic notation.
That replaces recoverable errors with crash.
- kibwen 11y agoI don't think monadic notation here is the panacea that it is sold as. The harder part would still be modifying your function's return type to thread the result up the stack. In any case, .unwrap() is perfectly fine in applications, it's only in libraries that they're discouraged.