3 ms·
That's nicer than continue really (as someone who doesn't know and has never written Lua) - works for whichever level of nested loops like that that you want, a
by OJFord 5y ago
That's nicer than continue really (as someone who doesn't know and has never written Lua) - works for whichever level of nested loops like that that you want, and allows/somewhat forces you to come up with a name that might be clearer what it's for.
- jstanley 5y agoIn Perl, "next" can take a label: LOOP: while (foo()) { while (bar()) { if (baz()) { next LOOP; } } }
- Viliam1234 5y agoSimilar in Java (it is called "break", and the optional label is written the same way), although I'd guess most Java developers don't know about it.