lua-users home
lua-l archive

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


> Although I like the idea of this new usage of 'in' (which is using the table
> given as the env for that scope instead of the global env, or at least
> that's what I got from a skim of the example code), I'd personally prefer if
> it didn't reuse 'in' which is already in use by the 'for' loops. Perhaps we
> could use 'using' or 'with'? (I find 'using' appealing.) Can anyone see any
> issues about this minor change? Or am I missing something important?

Guess "with" is reserved for RAII (I wouldn't like it, but see [1][2])
:) Otherwise `in` feels more "immersive" :)

[1] http://lua-users.org/lists/lua-l/2009-01/msg00333.html
[2] http://lua-users.org/lists/lua-l/2009-05/msg00539.html