Re: Popularity contest
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Popularity contest
- From: steve donovan <steve.j.donovan@...>
- Date: 2011年9月26日 14:41:51 +0200
On Mon, Sep 26, 2011 at 2:04 PM, Dirk Laurie <dpl@sun.ac.za> 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.