Re:“Mostly functional” programming does not work (2014)
by TazeTSchnitzel on Monday June 22, 2015 @09:06AM
(#9757975)
Well, Haskell also has something similar to the more traditional exceptions within the IO monad (ioError).
Would it be fair to say that this is an advantage of the Haskell approach of (for example) encapsulating an operation that might fail inside a Maybe? You get to make the failure aspect explicitly part of a monad, and make sure you "know" where it's happening?