[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: A common base exception object for Perl - RFC



Graham Barr wrote:

> Have you looked at the Error module on CPAN ?
> 
> At the conference last year there was a discussion about getting
> better handling into the core itself. The Error module was given
> as a starting point.

Yes but...

My personal feeling is that exception objects and syntactic sugar around
C<eval {}> don't necessarily belong in the same module: I use both here,
but I'm happy because it's /my/ syntactic sugar :) - this sort of thing
tends to be intensely personal and tied to each individual's experience
of exception handling in other languages.

My core purpose here is to standardise a base class for object
references passed to C<die>; C<Error> could easily be recoded to use
that base class and religious arguments about C<try {}> etc. syntax can
happen in parallel.

Of course, if an C<eval {}> wrapper were to be considered as being a
useful addition to the core, those arguments would need to crystalise.

Pete
-- 
use Disclaimer::Standard;	# Motorola GSM Software Factory
my $phone='+44 1793 564450';	# "'Not twisted,' Salzy once said of
my $fax='+44 1793 566918';	#  her own passion, 'it is helical.
my $mobile='+44 7973 725120';	#  That sounds better.'"


Follow-Ups from:
Graham Barr <gbarr@pobox.com>
References to:
Pete Jordan <pjordan1@email.mot.com>
Graham Barr <gbarr@pobox.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]