[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: __DIE__ and exception hooks
At the risk of being overly reductionist, is it fair to say that the
problem is that authors intend different things at different times by
"die"? That sometimes they want it to mean, "Exit, dammit, and I don't
want anything trapping this," sometimes they mean, "This here is an
exception which I intend to catch elsewhere," and sometimes they mean,
"Exit or be trapped by someone else, I don't care."
At least, that matches my experience. I do not see how the current die()
can satisfy all these requirements unambiguously and be
backwards-compatible - even if you extend the syntax somehow to allow the
user to explicitly say which form they mean, there will be all these
unextended forms that you don't want to break lying around out there which
could mean any one of them.
--
Peter Scott
Pacific Systems Design Technologies
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]