Re: LABELS: block

2005-05-03 Thread Juerd
Larry Wall skribis 2005-05-02 19:02 (-0700): In any event, none of the proposals that bury the label is going to be acceptable. As a vital visual element of control flow, the label has to be out front where it can be seen. Something that putting quotes around them accomplishes... (I'd still

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 weigh that : proposal, and

Re: LABELS: block

2005-04-27 Thread Aaron Sherman
On Tue, 2005-04-26 at 17:13, Juerd wrote: or you could have a keyword that introduces the label: rx/label ws+ identifier ws+ (statement|control)/ or you could use some kind of trickery: rx/label : $/ Or make it a macro. labelfoo; for 1... { ... } This has

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 colon.

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 with labels given that

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 not getting rid of

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 to: The real

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: :foobar, :quuxxyzzy == map { ... } == my @baz; or you could have a keyword that introduces the label: rx/label

Re: LABELS: block

2005-04-26 Thread Dave Whipp
Juerd wrote: ... Or just add quotes (yes, please) and keep the colon: foo: for 1... { next foo; } Given that next throws a control-exception that is handled by the looping construct, perhaps we sohuld think of the label as an optional parameter to the looping statement function