stat ::= for Name ‘=’ exp ‘,’ exp [‘,’ exp] do block end
Is it important? Maybe not because Lua could offer a range
function to perform numerical loops like so, just like it offers
pairs()/next() to iterate over table contents:
for i in range(from,to,step) do
print(i)
end
However the numerical loop exists. (And yes, I understand
that I am the devil's advocate here, as the numerical loop
saves function calls, so it is beneficial for performance
reasons).
Anyway, no big deal. Either Lua authors think it's
worthwhile, or not. The most likely is that they already had
that idea on their own and decided against it, for reasons of
minimalism: don't do it if it's not needed, just like you
said. Time to stop the noise :-).
Benoit.