lua-users home
lua-l archive

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


Exactly. Not to undercut Jonathan Castello, but I'd like to make a post simply on __iter itself before we take up arms against the numeric for.

On Mon, 24 May 2010 14:57:55 -0700, M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> wrote:


On Mon, 24 May 2010, Jonathan Castello wrote:

Please let me know what you think, I'd really appreciate it.

I'm slightly wary of your proposal because it 1) adds even more
implicit magic to the language, 2) breaks the current iterator
protocol, 3) is likely to have significant overhead in the loop setup
compared to explicit numeric for loops.

Cheers,

Joonas