Skip to main content
Active reading [<https://en.wiktionary.org/wiki/keyword#Noun>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

As other posters have said, it is a label, not a key wordkeyword. UsingUsing labels allows you to do things like:

outer: for(;;) { inner: for(;;) { break outer; } } 

This allows for breaking of the outer loop.

EDIT: With linkLink to documentation.

As other posters have said, it is a label, not a key word. Using labels allows you to do things like

outer: for(;;) { inner: for(;;) { break outer; } } 

This allows for breaking of the outer loop.

EDIT: With link to documentation

As other posters have said, it is a label, not a keyword. Using labels allows you to do things like:

outer: for(;;) { inner: for(;;) { break outer; } } 

This allows for breaking of the outer loop.

Link to documentation.

added 128 characters in body
Source Link
Rob Di Marco
  • 45.3k
  • 9
  • 73
  • 58

As other posters have said, it is a label, not a key word. Using labels allows you to do things like

outer: for(;;) { inner: for(;;) { break outer; } } 

This allows for breaking of the outer loop.

EDIT: With link to documentation

As other posters have said, it is a label, not a key word. Using labels allows you to do things like

outer: for(;;) { inner: for(;;) { break outer; } } 

This allows for breaking of the outer loop.

As other posters have said, it is a label, not a key word. Using labels allows you to do things like

outer: for(;;) { inner: for(;;) { break outer; } } 

This allows for breaking of the outer loop.

EDIT: With link to documentation

Source Link
Rob Di Marco
  • 45.3k
  • 9
  • 73
  • 58

As other posters have said, it is a label, not a key word. Using labels allows you to do things like

outer: for(;;) { inner: for(;;) { break outer; } } 

This allows for breaking of the outer loop.