Lua’s 1 based indexes put me off the whole language.
If the design decisions are that bad, what other horrors lurk within?
If the design decisions are that bad, what other horrors lurk within?
Also you usually iterate through tables without using an explicit start index.
That is, if I didn't miss a flag in luaconf.h which solves that.
function ipairs0(arr)
return ipairs(arr), arr, -1
end