lua-users home
lua-l archive

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

On Mon, Sep 26, 2011 at 2:04 PM, Dirk Laurie <> wrote:
> Personally I don't think it is clean and clever to make war veterans
> like `sin` and `cos` local, but let's not cloud the syntax issue.

It's a question of scope - if this is in a function, then this kind of
alias is readable, unambiguous, and faster to boot!

(for stock Lua that is, I think LuaJIT optimizes these cases by
hoisting out the reference of loops)

steve d.