[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why is break not syntactically required to be the last statement in a block (anymore)?
- From: Sean Conner <sean@...>
- Date: Thu, 28 Jul 2022 22:13:40 -0400
It was thus said that the Great Sean Conner once stated:
>
> If I'm doing this, then I would restructure the code to be:
>
> -- existing code
>
> local function foo()
> for ...
> for ...
> for ...
> if somecondition then
> return
> end
> end
> end
> end
> end
>
> foo()
And for those that know that naming things is one of the harder problems
in Computer Science:
(function()
for ...
for ...
for ...
if somecondition then
return
end
end
end
end
end)()
-spc