lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Aug 18, 2010 at 9:34 AM, Matthew Wild <mwild1@gmail.com> wrote:
[snip]
> I believe the argument against globals is much stronger in terms of
> maintainability than performance - i.e. I'd argue the same even if
> globals and locals had the same cost to reference them.
>
> Matthew

Out of curiosity, would we still use locals if it cost *more* to
reference them?  I think the answer to that question is very revealing
about the strength of each argument.  For most purposes, cost is
incidental, but maintainability is everything.