Re: RFC 63 (v3) Exception handling syntax
[email protected] (Tony Olekshy) Wed, 16 Aug 2000 21:13:18 -0600
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Organization | Avra Software Lab Inc. |
| Message-ID | <[email protected]> |
Peter Scott wrote:
>
> If that were so, even without the ignore() function, I could just say
>
> sub Exception::IO::throw { 'do nothing' }
>
> and kill it that way.
Right. Just like overriding core die. At that point you can
change the semantics in such a way as to turn your code into
nonsense.
> I am open to suggestions on whether we should make it impossible for
> someone that determined to shoot themselves in the foot to do so. My
> feeling is that someone smart may have a good reason for doing it (in
> their own code, not in a module given to others), and someone dumb
> deserves what they get for doing something so blatantly stupid.
I agree, we should not make it impossible, but I believe we should make
it relatively difficult to do accidentally (much like the forgotten
re-throw or function return code checking problems).
Yours, &c, Tony Olekshy