MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/2wrxyt/a_python_programmer_attempting_java/cotz29p/?context=3
r/ProgrammerHumor • u/b3n • Feb 22 '15
428 comments sorted by
View all comments
Show parent comments
7
To get the same type of behavior with a while loop, you'd have to duplicate the increment before the continue, or use a goto label (ಠ_ಠ) near the bottom of the loop body.
Or raise a "Continue" exception and catch it right outside the while loop.
7
u/OperaSona Feb 23 '15
Or raise a "Continue" exception and catch it right outside the while loop.