[swift-evolution] else clause for loops like that in Python

Amir Michail a.michail at me.com
Tue Dec 8 12:35:52 CST 2015


But to avoid confusion, maybe rename “else” to “nobreak”:

for i in 0..<10 {
  if i == 5 { break }
} nobreak {
  // no break occurred
}




More information about the swift-evolution mailing list