[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Audience for globals discussion?
- From: Matthew Wild <mwild1@...>
- Date: Thu, 19 Aug 2010 17:01:58 +0100
On 19 August 2010 14:51, Kevin Vermeer <reemrevnivek@gmail.com> wrote:
> 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.
>
I personally would certainly still use locals, yes. Whether I would
use Lua in that case though I don't know ;)
Matthew