|
|
|
|
|
by solomonb
576 days ago
|
|
> How can you do "Errors as values" at a large scale without do-notation / monads? You don't need monads for this. You just need the ability to encode your error in some term like `Either e a` and ability to eliminate those terms. In Rust for example that is the `Result` type and you use pattern matching to eliminate those terms. |
|
Rust has special syntax (`?`) for this AFAICT.