lua-users home
lua-l archive

Re: [PATCH] Loop Overflow Bug Fix

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


2017年11月20日 22:36 GMT+02:00 Soni L. <fakedme@gmail.com>:
> Why not just get rid of for loops?
>
> for (iter(1, 10), function(i)
> --...
> end)
>
> instead of
>
> for i=1,10 do
> --...
> end
>
> Huge improvement. Then anyone can redefine `for` and `iter` with things like
>
> for = myfor
> local for = myfor
> iter = myiter
> local iter = myiter
Why must this postulated function be called "for" (requiring Lua to be
changed) instead of some non-keyword like "loop" (which the same
'anyone' can do right now)?

AltStyle によって変換されたページ (->オリジナル) /