• @gedhrel
    link
    31 month ago

    That’s fine, and for that there are sum types. My own opinion differs - it’s a question of taste. Being able to bundle the handling of exceptional situations aside from the straight-line logic (or use RAIi-style cleanup) is notationally convenient.

    Yes, you can do the same with monads; use the tools available to you.