...
(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
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
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
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;".
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 +
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
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
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
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
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
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 ) {
>
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]
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.
13 matches
Mail list logo