On Sun, Sep 25, 2005 at 18:11:22 +0300, Yuval Kogman wrote:
> In order to support continuable exception generators, here is a
> style guide for exception values, and an observation on what
> exceptions should support at the language level:

And more...

* Exception strings are for humans

Humans need to know what happened in their own words. They have a
hard time analyzing error codes, or constant names.

Computers have a hard time analyzing strings, and prefer hard data.

It should be easy to identify each error in a way that is meaningful
to computers, and this way should be orthogonal to the string that
is displayed to the user when possible.

This means that it should be incredibly easy for the user to declare
exception classes as they are used, perhaps by stealing goodness
from enumish constructs, or somesuch.

-- 
 ()  Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418  perl hacker &
 /\  kung foo master: *shu*rik*en*sh*u*rik*en*s*hur*i*ke*n*: neeyah!!!!

Attachment: pgpcpkWrPtIwr.pgp
Description: PGP signature

Reply via email to