- break: exit loop
- continue: restart loop
- Perl equivalents: last, next
- continue as placeholder
for (; *string && isdigit(*string); string++)
continue;
- Java's labeled loops and control statements:
skip:
for ( /* [...] */ ) {
if ( ch == limit.charAt(0) ) {
for (int i = 1 ; i < limlen ; i++) {
if ( /* [...] */ )
continue skip;
}
return ret;
}
}
- Used for clarity:
comp : while(prev < length) {
/* [...] */
if (pos >= length || pos == -1) {
/* [...] */
break comp;
}
}