<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="">It recently occurred to me how nice it would be to be if we could avoid declaring variables outside of loops that are only used inside them. I used google’s site specific search (is that the canon way to search swift-evo?) and only found one thread about this, (<a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160718/024657.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160718/024657.html</a>) where from what I could see it got a positive reception.<div class=""><br class=""></div><div class="">It would be a special case though, and within an unrelated thread I saw this suggestion (<a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001201.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001201.html</a>) of letting you write a variable declaration in between the repeat keyword and the opening bracket. Personally I prefer this syntax.</div><div class=""><br class=""></div><div class="">Regardless, I’m wondering what happened to this thread? Is there a reason it didn’t get proposed? If the answer is that the discussion simply died down it may be worth revisiting it.</div><div class=""><div class="">
<br class="Apple-interchange-newline"><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;" class="">Sent from my Mac</span>
</div>
<br class=""></div></body></html>