lua-users home
lua-l archive

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




I am having fun reading this paper though.  Perhaps, actually the best choice for getting a specialized table iteration syntax into Lua 5 would be resurrect the foreach token from Lua 3.  I.e., have the transformation rule be:

foreach k,v in t --> for k,v in pairs(t)

That hardly saves you typing, but if the point is really clarity, as we keep on saying, I do think you can make a case for it.

-Sven