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

Re: Fatal/autodie exception hierarchies for Perl 5

Thread Previous | Thread Next
From:
Paul Fenwick
Date:
June 3, 2008 00:21
Subject:
Re: Fatal/autodie exception hierarchies for Perl 5
Message ID:
4844F0D1.4050804@perltraining.com.au
G'day chromatic / p5p / p6l,

> 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).

Excellent point.  I've been largely ignoring the user exceptions, and that 
they may wish to declare themselves as having an :io, :math, or similar role.

So, roles are in, I'll need to provide an appropriate interface for user 
code to make use of them.

Larry's post I'll be digesting on my trip home tonight. ;)

Cheerio,

	Paul

-- 
Paul Fenwick <pjf@perltraining.com.au> | http://perltraining.com.au/
Director of Training                   | Ph:  +61 3 9354 6001
Perl Training Australia                | Fax: +61 3 9354 2681

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