Re: [perl #57634] [RFC] Remove ".globalconst" from PIR

[email protected] ("Patrick R. Michaud") Sat, 27 Dec 2008 10:28:32 -0600
Newsgroups perl.perl6.internals
Message-ID <[email protected]>
On Sat, Dec 27, 2008 at 07:22:40AM -0800, Klaas-Jan Stol via RT wrote:
> > If we're going to remove one, let's deprecate .const outside of sub 
> > blocks, and make .globalconst mean a global constant everywhere. 
> > Consistency is a good thing, but so are clear distinctions between 
> > similar-but-different things.
> > 
> 
> I thought a bit more on this, and global .consts are more common than 
> sub-local consts (I think). Following the Huffman principle, I think it 
> would be nicer then to use '.localconst' for a local const, only 
> available in a sub, and .const for global constants. (and thus removing 
> .globalconst).

+1

Pm