Giving name to a loop

前端 未结 6 1771
北荒
北荒 2020-12-06 05:33

While browsing questions and answers in this forum i found a piece of code were names were given to loops in order to use them for break. Like

nameofloop:
          


        
6条回答
  •  北海茫月
    2020-12-06 05:41

    It's known as a labelled break which is a form of branching statement. You can see all the examples in the Official Documention.

提交回复
热议问题