<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 8, 2015, at 14:50, Brent Royal-Gordon via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">But to avoid confusion, maybe rename “else” to “nobreak”:<br class=""><br class="">for i in 0..<10 {<br class=""> if i == 5 { break }<br class="">} nobreak {<br class=""> // no break occurred<br class="">}<br class=""></blockquote><br class="">I’ve often wanted an else clause on loops—but one that would run only if the loop went through zero iterations. I can’t imagine when I would ever use `nobreak`.<br class=""></div></div></blockquote></div><br class=""><div class="">Yep, this is the one I'd want. But I think we probably just shouldn't have either, especially now that we've seen that there are two possible interpretations. Amir, a workaround for yours today:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">outer: do {</div><div class=""> for i in 0..<10 {</div><div class=""> if i == 5 { break outer }</div><div class=""> }</div><div class=""> print("no break occurred")</div><div class="">}</div></blockquote><div class=""><br class=""></div><div class="">Jordan</div></body></html>