News for hackers. Stuff that matters.
Re:“Mostly functional” programming does not work (2014) by maehwasu on Monday June 22, 2015 @08:33AM (#9757785)
The example of the exception being thrown late (essentially, an exception being a type of side-effect) is quite good.

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?

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).