News for hackers. Stuff that matters.
Re:Escaping Hell with Monads (2017) by m1el on Friday February 23, 2018 @06:43AM (#16445714)
The answer to that is `Either` monad (similar to `Result` in Rust).
Re:Escaping Hell with Monads (2017) by thomasahle on Friday February 23, 2018 @07:14AM (#16445844)
You have to then combine multiple monads though, which isn't quite as easy iirc.
Re:Escaping Hell with Monads (2017) by loverofthings on Friday February 23, 2018 @08:20AM (#16446120)
Well, monad transformers make things easy but the abstraction impacts runtime performance :(