
21 May
2013
21 May
'13
9:41 a.m.
Hi Adrian,
What's an exception? I thought Haskell used Maybe.
Haskell also has exceptions: dan@machine ~> ghci Prelude> head [] *** Exception: Prelude.head: empty list I also consider them as quite problematic, especially if they're used in libraries, but sometimes we're all a bit lazy and the 'error' function comes in handy ... Greetings, Daniel