Hacker News new | ask | show | jobs
by marcosdumay 3628 days ago
Yeah, but if you had 5 operations in Haskell, you'd write:

    do
        a <- operation1
        operation2 a -- This one returns nothing
        b <- operation3 a
        c <- operation4 b
        operation5 c
In Go, you'll keep repeating that 'if err != nil {' everywhere. And things get way more interesting with more complex monads, but error handling is simple.