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