[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] LuaMacro 2 - a lexical macro preprocessor for Lua
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 2 May 2011 14:51:21 +0200
On Mon, May 2, 2011 at 2:38 PM, Krunal Rao <firstname.lastname@example.org> 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.