Re: I'd give my right arm for a continue statement
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: I'd give my right arm for a continue statement
- From: GrayFace <sergroj@...>
- Date: 2011年1月23日 17:57:45 +0600
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