Steve Scaffidi wrote:
> Bob Rogers wrote:
> > Better is a language design where the handler runs in the dynamic
> > context of the exception, and gets to decide what to do, and how much
> > information to capture.  Like Perl 6.  (Does this mean we're back on
> > topic now? ;-)

It's certainly a powerful option to have.  Java, for example, does allow an
exception class to take such actions within its constructor and can choose
not to trace the stack.  It can't cancel itself -- you need to use an extra
method call & layer of abstraction to get that effect.  But that flexibility
obviously comes with complexity.  If people find it hard to trace the flow
of control in the presence of exceptions, it can't be any easier when
exceptions might or might not jump anywhere.



_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to