Re: RFC 106 (v1) Yet another lexical variable proposal: lexical variables made default

[email protected] (Nathan Torkington) Fri, 18 Aug 2000 16:14:54 -0600 (MDT)
Newsgroups perl.perl6.language.strict
Message-ID <[email protected]>
J. David Blackstone writes:
>   I agree with you.  However, I am unable to find a case in which a
> package global could not be replaced with a lexical defined in the
> module's .pm file and an accessor method for it.  Even if you are
> extending a class, you can still provide this.

A lexical plus an accessor method, when the accessor method does
nothing more than get or set the value with no checks or anything,
is just a slow and cumbersome global variable.

I don't understand the rush to remove global variables.  Why are they
such a blight?  If you don't like 'em, don't use 'em.  But don't make
me give them up.  They make things easy for me.

Nat