4 ms·
It's been a while since I've actually written haskell, but a lot of this is about monads, both Monad and monad transformers, both of which Rust doesn't have. >
by steveklabnik 8y ago
It's been a while since I've actually written haskell, but a lot of this is about monads, both Monad and monad transformers, both of which Rust doesn't have.
> The broken fail function
We don't have this.
> The problem with Error
Our Error trait (typeclass in haskell terms) had a "description" method that had some issues, so we've deprecated it and provided a default impl. We expect errors to implement a similar type signature, but with the Display/Debug traits, not some sort of fromString trait.
> The proper Monad Either instance
not applicable
> Either for arbitrary error types
Rust's Result already works for arbitrary error types; you don't have to actually implement Error for them, so this is a non-issue.