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

Re: A common base exception object for Perl - RFC



>>>>> "Pete" == Pete Jordan <pjordan1@email.mot.com> writes:
    Pete> Fair point. OK, you've convinced me. I can derive a
    Pete> structure from Graham's C<Error> module - a bare framework
    Pete> base class and C<Exception::Simple> which would implement
    Pete> what I originally described.

As someone who bitched loud & long about this at the last conference I
have one question: do you plan to fix all the croak calls in the
current source code and/or supply some mechanism for XS programmers to
Do The Right Thing as well?  The whole point of having *any* exception
class is wasted if it only applies to custome code and as along as you
support the auto-stringification (is that a word?) of $@, the Backward
Compatability Police can't touch you.

BTW, as backwards compatability requires you to support
auto-stringification of $@ anyway, why bother with a 'to_string'
string method at all?  This:

        print $@;

is so much less typing than this:

        print $@->to_string;

-- 
Stephen

"If I claimed I was emporer just cause some moistened bint lobbed a
scimitar at me they'd put me away"


Follow-Ups from:
Larry Wall <larry@wall.org>
Pete Jordan <pjordan1@email.mot.com>
References to:
"Redford, John" <John.Redford@fmr.com>
Pete Jordan <pjordan1@email.mot.com>

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