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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to