lua-users home
lua-l archive

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


Yes, I like these scoping rules.

Freek Brysse wrote:

> >
> > I have personally tested  lua, perl, python, tcl by writing
> > similar scripts. I found lua to be much faster (sorry cannot
> quantify
> > !!).
> > But the thing that really made me embrace lua is the sheer elegance
> > of the language.
>
> Lua is great on almost every point, except the scoping rules. Why
> can't we
> have normal scoping rules (i.e a variable is local unless defined
> globally?).  Though I read the rationale behind that decision
> somewhere, I
> wasn't exactly statisfied by it.
> Is there any who likes these scoping rules?
>
> Are there any plans on changing this?
>
> Freek B.