Re: On the case for exception-based error handling.

2000-08-21 Thread Chaim Frenkel
> "TO" == Tony Olekshy <[EMAIL PROTECTED]> writes: >> As for legacy. I strongly urge that Modules _never_ die. >> It is extremely rude. TO> The contract between a module and its client is beyond the scope TO> of RFC 88. However, I take it from your strong stance that you TO> wrap every ++$i

Re: RFC 88: Possible problem with shared lexical scope.

2000-08-21 Thread Dave Rolsky
On 22 Aug 2000, Chaim Frenkel wrote: > Could you tell me why you would want two finallys? > > Why not put them into one? > TO> my ($p, $q); > TO> try { $p = P->new; $q = Q->new; ... } > TO> finally { $p and $p->Done; } > TO> finally { $q and $q->Done; } Presumably because all f

Re: RFC 88 v2 draft 5 is available via http.

2000-08-21 Thread Chaim Frenkel
> "TO" == Tony Olekshy <[EMAIL PROTECTED]> writes: TO> 2. Multiple conditional catch clauses now work like a switch, TO> instead of like a bunch of sequential ifs. TO> This always bugged me too, but I couldn't nail it down TO> until the debate about using else/switch instead of

Re: RFC 88: Possible problem with shared lexical scope.

2000-08-21 Thread Chaim Frenkel
> "PS" == Peter Scott <[EMAIL PROTECTED]> writes: PS> However, my memory as to what the current perl behavior is was faulty; PS> continue blocks do *not* share the lexical scope of their attached loop PS> blocks. I was misremembering the caveat at the end of this part of perlsyn PS> (whic

Re: RFC 88: Possible problem with shared lexical scope.

2000-08-21 Thread Chaim Frenkel
Could you tell me why you would want two finallys? Why not put them into one? > "TO" == Tony Olekshy <[EMAIL PROTECTED]> writes: TO> Non-shared: TO> my ($p, $q); TO> try { $p = P->new; $q = Q->new; ... } TO> finally { $p and $p->Done; } TO> finally { $q and $q->Done; } TO

Re: Draft 3 of RFC 88 version 2.

2000-08-21 Thread Chaim Frenkel
> "TO" == Tony Olekshy <[EMAIL PROTECTED]> writes: TO> Perl's behaviour after a C starts call-stack unwinding, as TO> envisioned by this RFC, is as described by the following rules. TO> 1. Whenever an exception is raised Perl looks for an enclosing TO> try/catch/finally clause. TO>

On the case for exception-based error handling.

2000-08-21 Thread Tony Olekshy
Executive Summary: We should go to a pure return-based mechanism for error signalling, or a pure exception-based one. We can't do the former. Therefore we should do the latter. Author's Note: I'm a pragmatist. I'll keep using return-based error signalling for some purposes, just li

RE: Exception stack: let's use the @@ list.

2000-08-21 Thread Brust, Corwin
-Original Message- From: Tony Olekshy [mailto:[EMAIL PROTECTED]] So, now you can say: catch grep { $_->isa("Foo") } @@ { ... } Ok, I think I could learn that. "Brust, Corwin" wrote: > > In the context of a catch block, if could @_ contain the > exception stack, starting with

Re: Draft 2 of RFC 88 version 2.

2000-08-21 Thread Peter Scott
At 11:03 AM 8/21/00 -0400, Chaim Frenkel wrote: >Those rule are hard to read. I've tried reading them quite a few times >and I have trouble understanding them. I can't tell if the rules are >complex or it simply needs to be reworked. If it is complex then I >don't think this is the right approach.

Re: Draft 2 of RFC 88 version 2.

2000-08-21 Thread Chaim Frenkel
Those rule are hard to read. I've tried reading them quite a few times and I have trouble understanding them. I can't tell if the rules are complex or it simply needs to be reworked. If it is complex then I don't think this is the right approach. The rules should be simple. As for legacy. I stron