Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: