lua-users home
lua-l archive

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



Any thoughts on "don't repeat yourself" in name localization? Is this a non-problem? Is it just premature optimization? Or premature calls for a fix? :-)

On a related note, I'd be curious to know the Lua authors' current position on Peter's table unpack patch.  Did they consider it for 5.2?  Might they consider it for a later revision?

It does provide a fairly nice simplification of all Jay's examples:

local tostring in _ENV
local insert,concat in table
local lxp,ml,plutils in _IMPORT

(Though to get that last one to work you need to define an appropriate __index method for _IMPORT.)

-Sven