3 ms·
> It's funny how there's still a considered-harmful goto buried in the language, even though they don't call it that. Not quite. GOTO allowed you to jump anywh
by Alupis 12y ago
> It's funny how there's still a considered-harmful goto buried in the language, even though they don't call it that.
Not quite. GOTO allowed you to jump anywhere in the code, for any reason, at any time. Java's Label only really allows you to break out of a loop and jump to a label that was previously defined before that loop.
It's mainly used for breaking out of a set of nested loops on some condition.