4 ms·
I think it's only academic FP that's currently interested in effect systems. most production FP still use the traditional monad error handling. Rust's `Result`
by tonlage 3y ago
I think it's only academic FP that's currently interested in effect systems. most production FP still use the traditional monad error handling.
Rust's `Result` type does indeed have a `.map()` function, which works how you'd expect (and `Result`is an iterator, which give syntax for it).
Yeah, algebraic data types are very nice, and feel like such a free lunch. I cry every time i have to implement something that should have been a one-line sumtype definition as a class hierarchy.