[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Blog post on explicit locals in Lua
- From: Xavier Wang <weasley.wx@...>
- Date: Wed, 6 Jun 2012 01:43:11 +0800
I really think which is default is not problem, the problem is *how*
we know that *is* global/local. has some tools to analyze your code
and give hint about how many globals you used?
I have tried lua-inspect but it gives me too many things than I need.
maybe some tools can replace luac and can produce warnings about e.g.
globals.
2012/6/4 <rob@hoelz.ro>:
> Hello list,
>
> I've seen a couple of complaints about how Lua uses explicit locals (unlike
> other popular scripting languages), so I wrote a blog post to address this:
>
> http://hoelz.ro/blog/lua-why-explicit-local-is-a-good-thing
>
> -Rob
>