Hacker News new | ask | show | jobs
by johnisgood 1829 days ago
You can label your loops and use an inner labeled single-pass loop, you can have labels such as "<<Continue>>" to what you can do a "goto Continue", or you can raise an exception that does "null", which does nothing and carries on to the next iteration.
1 comments

In the same vein, why bother with 'for' and 'while' loops. You could just use a label and a goto statement.