lua-users home
lua-l archive

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


On 23.01.2011 17:41, GrayFace wrote:
I like the suggestion of labeled loops, it's certainly more readable, but it's a serious syntax extension. I gravitate towards something like this syntax:
for y = 1,10 do
  for x = 1, 10 do
    break 'y'
  end 'x'
end 'y'
The stringy labels should prevent any collisions with operators that follow.

I forgot about repeat..until here. I guess label would have to go after 'repeat', although that's not good.

--
Best regards,
Sergey Rozhenkomailto:sergroj@mail.ru