On Sun, Dec 17, 2006 at 13:24:33 -0800, David Roundy wrote:
> [fix issue360, with darcs mv foo foo.

Looks good.  Will accept this on my next run.

> +                        [_] -> error "Cannot rename a file or directory onto 
> itself!"

Which is better here, fail or error?

I don't think I have a very strong grasp of failure/errors.  I always
feel uncomfortable on same level using error to indicate something going
wrong (as opposed to a bug) [this porridge is too hot].  Then again the
notion of failure is way more general than just "things going wrong"
(consider Maybe), so that can't be quite right either...  [this porridge
is too cold] and then there's exceptions, which I still haven't
completely worked into my world view... and which, in any case does not
seem appropriate for this.

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.

Attachment: pgpaS8qYzi721.pgp
Description: PGP signature

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to