lua-users home
lua-l archive

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


> Perhaps we should just deprecate "generic for" and simplify the language. In standard Lua we could have:
> 
> forpairs(table, function(k, v) ... end)
> 
> foripairs(table, function(i, v) ... end)

We already have table.foreach and table.foreachi, but they are deprecated.