develooper Front page | perl.perl5.porters | Postings from June 2008

Re: Fatal/autodie exception hierarchies for Perl 5

Thread Previous | Thread Next
From:
chromatic
Date:
June 2, 2008 14:24
Subject:
Re: Fatal/autodie exception hierarchies for Perl 5
Message ID:
200806021423.26136.chromatic@wgz.org
On Sunday 01 June 2008 19:31:34 Paul Fenwick wrote:

> Questions I'm seeking answers to are:
>
> * Is there a document that describes the current p6l exception hierarchy?
> My searching skills seem to be impaired today.
>
> * Does anyone have any input they'd like to make before I start fleshing
> out the hierarchy for p5 autodie?

Hierarchies suck, especially singly-rooted hierarchies.  Then again, 
multiply-rooted hierarchies turn into big cyclic graphs.

Make a list of all possible types of exceptions, define them as roles, and 
group them that way.  Any given exception can implement multiple roles (:CORE 
and :io, for example, or a specialization of that role that also does :USER).

-- c

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About