News for hackers. Stuff that matters.
Re:Emulating exceptions in C: a case study by alexknvl on Thursday August 27, 2015 @03:10AM (#10127988)
Let me use my favourite tool of intellectual terrorism: Just use monads. Ouch, now we have two problems here. :P
Re:Emulating exceptions in C: a case study by vog on Thursday August 27, 2015 @05:22AM (#10128381)
To be serious: This was my first thought, too. Exceptions are essentially one kind of monads, and any complex compiler or interpreter could make good use of more types of monads.

I believe the paper of Wadler makes this most clear. Some time ago, it was a real eye-opener for me:

http://homepages.inf.ed.ac.uk/wadler/papers/essence/essence....