On Sun, Jun 1, 2008 at 7:31 PM, Paul Fenwick [EMAIL PROTECTED] wrote:
Currently, when testing exceptions from autodie, we can use:
given ($@) {
when (undef) { say No errors here }
when ('open') { say Open died }
when (':file') { say Some
G'day Josh / p5p / p6l,
given ($@) {
# [snip]
default{ say Not an autodie exception. }
}
If you're going to write that into some documentation, I wish you'd
make default say that it's exception suicide.
The documentation clearly needs
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
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 of the
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.
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. nounmo' means because of the noun, so the above says
something like 'die because of the warrior', 'return
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
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.
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
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.
G'day chromatic / p5p / p6l,
Make a list of all possible types of exceptions, define them as roles, and
group them that way. Any given exception can implement multiple roles (:CORE
and :io, for example, or a specialization of that role that also does :USER).
Excellent point. I've been
G'day Larry / p6l / p5p,
Larry Wall wrote:
One little problem at the outset here is that Perl 6 has almost no
concept of built-in or CORE, except insofar as the Prelude happens
to choose to import certain subs into the user's scope by default.
Once you actually start parsing and calling
On Sunday 01 June 2008 19:31:34 Paul Fenwick wrote:
Questions I'm seeking answers to are:
* Is there a document that describes the current p6l exception hierarchy?
My searching skills seem to be impaired today.
* Does anyone have any input they'd like to make before I start fleshing
out
On Mon, Jun 02, 2008 at 12:31:34PM +1000, Paul Fenwick wrote:
G'day p6l and p5p,
I'm currently working on the 'autodie' pragma for Perl 5, which is
essentially 'Fatal' but with lexical scope. It's similar to the 'fatal'
pragma described in S04/Exceptions.
autodie is implementing an
G'day p6l and p5p,
I'm currently working on the 'autodie' pragma for Perl 5, which is
essentially 'Fatal' but with lexical scope. It's similar to the 'fatal'
pragma described in S04/Exceptions.
autodie is implementing an exception hierarchy for in-built functions.
Essentially we have a
15 matches
Mail list logo