[darcs-devel] [patch1980] split off D.R.Pristine and D.R.Traverse ... (and 4 more)

Ganesh Sittampalam bugs at darcs.net
Wed Feb 26 07:07:41 UTC 2020


Ganesh Sittampalam <ganesh at earth.li> added the comment:

On 25/02/2020 07:46, Ben Franksen wrote:

> You are right. Will fix, probably adding ifDoesNotExistError and use
> that instead.

I should have also commented that I also find using exceptions instead
of normal control flow a bit strange, although I don't know of any
concrete problems with doing it in Haskell so it's just a matter of a
style preference.

In many other languages exceptions are often relatively slow. I have no
idea of the speed in Haskell but I doubt it's material here.

Using exceptions for non-exceptional situations makes debugging harder
as a common debugging pattern is to ask the debugger to break the first
time an exception is thrown. So "expected" exceptions just get in the
way. But since Haskell doesn't have a usable debugger this is somewhat
irrelevant too :-)

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1980>
__________________________________


More information about the darcs-devel mailing list