Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1.
[email protected] (Jonathan Scott Duff) Wed, 16 Aug 2000 14:57:23 -0500
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 16, 2000 at 12:36:42PM -0700, Peter Scott wrote: > If you use a switch statement and want implicit rethrow (and I do), then > your exception handler somehow has to look inside the switch to see if an > exception was handled. Even if that's possible, it implies a level of > incestuousness that isn't good; what if the programmer puts something > besides a switch in the catch/else block? Is it supposed to look inside > that too to figure out if the exception was caught? Let the programmer tell Perl that the exception was handled. I suggested in another email that "undef $@" would do it. But that's just an idea. -Scott -- Jonathan Scott Duff [email protected]