[swift-evolution] Proposal: "break for", "break do", "break if", "break case", "break repeat", etc.

Amir Michail a.michail at me.com
Wed Dec 9 15:26:10 CST 2015


With such constructs, you could avoid using labels most of the time.

For example:

for … {
  if … {
    guard … else { break if }
    ...
  }
}

for … {
  for … {
    if … {
      break outer for
    }
  }
}



More information about the swift-evolution mailing list