[Haskell-cafe] Re: Exception handling in numeric computations
Achim Schneider
barsoap at web.de
Sun Mar 29 13:41:05 EDT 2009
Henning Thielemann <schlepptop at henning-thielemann.de> wrote:
> Actually, I really object to have exception handling built into IO
> monad.
>
I couldn't agree more. If I want to write non-recovering code, I can
always just say
(Right foo) <- readLine
, and hope that the RTS is smart enough to print the error message in
the left constructor should that match fail.
--
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.
More information about the Haskell-Cafe
mailing list