[Haskell-cafe] Errors in non-monadic code
Tobias Dammers
tdammers at gmail.com
Mon Aug 19 21:29:02 CEST 2013
Except that people generally don't seem to agree what constitutes
'exceptional', even when disregarding the python world...
On Aug 19, 2013 9:24 PM, "Brandon Allbery" <allbery.b at gmail.com> wrote:
> On Mon, Aug 19, 2013 at 2:59 PM, <jabolopes at google.com> wrote:
>
>> I'd say that if you were in the context of the IO monad, maybe you'd
>> prefer to use exceptions instead of 'Either' or 'Maybe'.
>>
>
> Even in IO, exceptions should be reserved for truly exceptional conditions
> (of the "program cannot safely continue" variety), not merely for error
> checking when this can be described as a normal flow of evaluation.
> Exceptions are not simply alternative flow of control, even in procedural
> languages; they are *disruptions* of flow of control.
>
> --
> brandon s allbery kf8nh sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130819/3aed8fe6/attachment.htm>
More information about the Haskell-Cafe
mailing list