3 ms·
That structuring is important though, and is what Haskell does with monads and C++ does with exceptions (which are in many ways a kind of hardcoded syntax for a
by saurik 6y ago
That structuring is important though, and is what Haskell does with monads and C++ does with exceptions (which are in many ways a kind of hardcoded syntax for an error monad). Rust just has unstructured manual error checking and propagation with some conventions to make it more likely to be sane, as it rejected both exceptions and monads as approaches to real structured error management.
- masklinn 6y agoNo, Rust has structured error checking, in fact is specifically has monadic error management, just without the monad abstraction itself.