develooper Front page | perl.perl5.porters | Postings from July 2009

Re: "Keyword" labels now forbidden (was [perl.git] branch blead, updated. GitLive-blead-1705-gf71d615)

Thread Previous | Thread Next
From:
David E. Wheeler
Date:
July 30, 2009 11:53
Subject:
Re: "Keyword" labels now forbidden (was [perl.git] branch blead, updated. GitLive-blead-1705-gf71d615)
Message ID:
03FE977C-5525-4DB2-8520-50746B651322@kineticode.com
On Jul 30, 2009, at 10:27 AM, Chip Salzenberg wrote:

> First, how about if we disallow only the BEGIN-family of keywords as  
> labels?
> Considering the original bug report those are the ones that can cause
> trouble.  Writing "for: {}" is weird but why should we stop you,  
> really?

I think just disallowing the uppercase keywords would be sufficient.

> Second, how about if any limitations on labels is only if they're to  
> blocks?
> There's no possible confusion about the meaning of the label in:
>
>  sub foo () {
>    CHECK: for (@a) { ... }
>  }
>
> so I don't think we need to forbid it.

Yeah, but then it's inconsistent. Sometimes you can use CHECK for a  
label and sometimes you can't?

Best,

David

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About