[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Type Metatables for Table and Userdata - Powerpatch
- From: Sven Olsen <sven2718@...>
- Date: Thu, 6 Dec 2012 22:41:38 -0800
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