Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread David Nicol
On Mon, Jun 2, 2008 at 6:50 PM, Larry Wall <[EMAIL PROTECTED]> wrote: >* Exception handlers run in the lexical context of the block being >tried. >* Exception handlers run in the dynamic context of the code that is >failing. the first seems dangerous, esp. considering the

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Mark J. Reed
The catch block is lexically contained within the try block, so the inviolate nature of the curlies remains intact. On 6/3/08, David Nicol <[EMAIL PROTECTED]> wrote: > On Mon, Jun 2, 2008 at 6:50 PM, Larry Wall <[EMAIL PROTECTED]> wrote: > >>* Exception handlers run in the lexical context o

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Roland Giersig
Paul Fenwick wrote: [1] Klingon semantics: It is better to die() in the attempt than to return() in failure. I'll buy a beverage for whomever can help me translate that back into Klingon in time for OSCON. ;) The concept of "better ... than" is difficult to express and not very warrior-like.

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Mark J. Reed
On Wed, Jun 4, 2008 at 9:09 AM, Roland Giersig <[EMAIL PROTECTED]> wrote: > batlh yiHegh SuvwI'mo! yIcheghbe' lujwI'mo'! > Die honorably as a warrior! Do not return as a looser! Not quite. mo' means "because of the ", so the above says something like 'die because of the warrior', 'return because

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Larry Wall
On Wed, Jun 04, 2008 at 10:42:33AM -0400, Mark J. Reed wrote: : However, I think we are now officially *way* off topic for Perl6... Not really--a Klingon army is a *parallel* processor, and just because one Klingon dies doesn't mean the whole army should suddenly die too. Traditional exception han

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread David Nicol
On Wed, Jun 4, 2008 at 7:21 AM, Mark J. Reed <[EMAIL PROTECTED]> wrote: > The catch block is lexically contained within the try block, so the > inviolate nature of the curlies remains intact. thank you.

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Roland Giersig
Mark J. Reed schrieb: I think the simplest and most Klingonlike expression of the sentiment is simply this: yIQap pagh yIHegh! (Succeed or die!) But you could say something like: SuvwI' yIDa: yIHegh! bIlujchugh yIcheghQo'! (Behave as a warrior: die! If you fail, do not return!) Thanks for

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Dave Whipp
Larry Wall wrote: On Wed, Jun 04, 2008 at 10:42:33AM -0400, Mark J. Reed wrote: : However, I think we are now officially *way* off topic for Perl6... Not really--a Klingon army is a *parallel* processor, and just because one Klingon dies doesn't mean the whole army should suddenly die too. Tradi