News for hackers. Stuff that matters.
Re:“Mostly functional” programming does not work (2014) by jimbokun on Monday June 22, 2015 @05:45PM (#9761427)
"And in the example with the try-catch I would have wrapped it around the loop anyway."

It's very likely that, in reality, you would forget the exception could be thrown until it happened in production.

So the advantages of the Haskell type system and purity guarantees, I think, often come down to the compiler preventing you from making certain errors that don't surface in other languages until you run the program. (Disclaimer: not a Haskell programmer.)

There are no comments on this comment yet.