On May 3, 2010, at 12:14 , Henning Thielemann wrote:
Ketil Malde schrieb:
Henning Thielemann <lemm...@henning-thielemann.de> writes:
http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Control-Exception.html#v%3Athrow

I see. This should be forbidden, at all! :-)

Why is this worse than or different from 'error'? To me it looks like
'error', only with a non-string parameter.

Because it encourages the use in a non-error way, that is, catching such
an exception is regarded as good use.

One could argue that it's a more comprehensible to mortals version of Control.Monad.Cont.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

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

Reply via email to