Re: LABELS: block

2005-05-03 Thread Juerd
... (I'd still like the bareword-ish labels to go away) Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html

Re: LABELS: block

2005-05-02 Thread Larry Wall
On Tue, Apr 26, 2005 at 11:24:34AM -0600, Luke Palmer wrote: : That's true, but the former hasn't been accepted. That's not something : I considered when I was thinking about that proposal, but I think it's : a fairly minor issue. We'll ignore labels as we continue to w

Re: LABELS: block

2005-04-27 Thread Aaron Sherman
diom (syntactic complexity for semantic simplicity should indicate deprecated constructs, and as far as I know, no one is deprecating labels). * Tagging might be useful in other situations where a keyword would be useful for visually marking the construct. I have no

Re: LABELS: block

2005-04-26 Thread Dave Whipp
meter to the looping statement function for :label 1... { next "foo" }; This makes labels somewhat less general, but maybe C should be handled separately, anyway. For example, maybe you can only use C if you've asked to "use continuations;".

Re: LABELS: block

2005-04-26 Thread Juerd
Aaron Sherman skribis 2005-04-26 16:40 (-0400): > Is there ever a reason for a leading adverb in a statement or control > structure? List of pairs and left-to-right writing: :foo, :quux ==> map { ... } ==> my @baz; > or you could have a keyword that introduces the label: > rx/label +

Re: LABELS: block

2005-04-26 Thread Aaron Sherman
On Tue, 2005-04-26 at 13:24, Luke Palmer wrote: > [we'll] redo label syntax later if we must. Well, of course you run the danger of making it hard for people to recognize labels which are otherwise common across many languages, but here's a few ways you could do labels if you need

Re: LABELS: block

2005-04-26 Thread Luke Palmer
Juerd writes: > Luke Palmer skribis 2005-04-26 9:28 (-0600): > > Labels are pretty easy to pick out. I don't believe there is any other > > thing in the language that, at the beginning of a statement, matches > > /\w+\:/ . They are certainly available in Perl 6 (as are

Re: LABELS: block

2005-04-26 Thread Juerd
Luke Palmer skribis 2005-04-26 9:28 (-0600): > Labels are pretty easy to pick out. I don't believe there is any other > thing in the language that, at the beginning of a statement, matches > /\w+\:/ . They are certainly available in Perl 6 (as are plain old line > labels; we&#

Re: LABELS: block

2005-04-26 Thread Luke Palmer
Stevan Little writes: > Hello all, > > I have been going over the Synopsis, and I cannot find block labels > mentioned anywhere. I was under the impression that if it is not > mentioned, then it can be assumed to be the same as perl5. However, I > wonder if this is the case

LABELS: block

2005-04-26 Thread Stevan Little
Hello all, I have been going over the Synopsis, and I cannot find block labels mentioned anywhere. I was under the impression that if it is not mentioned, then it can be assumed to be the same as perl5. However, I wonder if this is the case with labels given that "everybody wants the

Re: Labels

2001-09-05 Thread Michael G Schwern
On Wed, Sep 05, 2001 at 09:02:00PM -0400, Bryan C. Warnock wrote: > Hmm is this such a good thing? Using goto LABEL? No. ;) Would be nice if Perl warned one about multiple labels of the same name in the same call stack, though. > my $a = 0; > GORK: while( 1 ) { >

Labels

2001-09-05 Thread Bryan C . Warnock
Hmm is this such a good thing? my $a = 0; GORK: while( 1 ) { print "Rin "; GORK: if ( 1 ) { print "Tin "; goto GORK if $b ^= 1; print "\n"; next GORK; } } -- Bryan C. Warnock [EMAIL PROTECTED]

labels within expressions?

2000-09-11 Thread David L. Nicol
nce per iteration, > implicitly; so using C explicitly to mean "no further iterations" > is highly counterintuitive, or at least inconsistent. What if we could use C to exit valued iterators? Currently we cannot because labels can not appear within statements, only on their own.