lua-users home
lua-l archive

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


On Mon, May 2, 2011 at 2:38 PM, Krunal Rao <krunal.rao78@gmail.com> wrote:
> Just curious, is there a specific reason why this would be much better than the
> m[i][j]  syntax which is achievable at the moment?

In Francesco's experience, m[i][j] can be relatively expensive, since
m[i] must return an indexable object. So it's an optimization concern.

Alas, but something like LuaMacro will struggle to detect and handle
EXPR[i,j] since it either would need a lot of history or a lot of
lookahead - in other words, it would need to be a Lua parser.

steve d.