[perl #57634] [RFC] Remove ".globalconst" from PIR
Patrick R. Michaud
pmichaud at pobox.com
Sat Dec 27 16:28:32 UTC 2008
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
More information about the parrot-dev
mailing list