My confusion stems from this example labelled statement:
myLoop : while (expression) {
continue myLoop;
}
and the syntax of a general labelled statement:
identifier : statement
What exactly is being labelled in the example?
isn't the whole block of code:
while (expression)
statement
considered a single statement? Or is while(expression)
itself a statement? Or is while
a statement by itself?
Why isn't the entire:
while (expression) {
continue myLoop;
}
labelled under myLoop
and not just while(expression)
. Or is that even happening?