<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 Jun 12, 2017, at 5:13 PM, Pavol Vaskovic via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><div class="gmail_quote">On Sun, Jun 11, 2017 at 1:52 AM, Haravikk via swift-evolution <span dir="ltr" class=""><<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">With the ability to specify throwaway variables more easily, I'm sticking with my using syntax here:</div><div class=""><br class=""></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px" class=""><div class=""><font face="Monaco" class="">var theNames:[String] = []</font></div><div class=""><font face="Monaco" class="">while let eachItem = theIterator.next() using (var theTotal = 0) where (theTotal < 100) {</font></div><div class=""><font face="Monaco" class=""><span class="gmail-m_6134952961082030135m_225386513829070979Apple-tab-span" style="white-space:pre-wrap">        </span>theNames.append(eachItem.name)</font></div><div class=""><font face="Monaco" class=""><span class="gmail-m_6134952961082030135m_225386513829070979Apple-tab-span" style="white-space:pre-wrap">        </span>theTotal += eachItem.value</font></div><div class=""><font face="Monaco" class="">}</font></div></blockquote><br class=""><div class="">Depending upon your preference on how to structure the using and where parts this is shorter and easier.</div></div></blockquote><div class=""><br class=""></div><div class="">I think you just reinvented the C-style for loop, that was removed in <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0007-remove-c-style-for-loops.md" class="">SE-0007</a>.</div></div></div></div></div></blockquote>Eh, as long as a feature wasn’t removed for security or correctness reasons (which isn’t the case with SE-0007), I don’t see a problem with one proposal enabling functionality that was removed by another. It’s not like we said C-style for loops are evil or anything, just that they weren’t right for Swift. If it turns out that something which otherwise <i class="">is</i> right for Swift can be “abused” to get C-style for loop semantics, then those who voted against SE-0007 are free to try out this new syntax and see if that helps them. IMHO, anyway.</div><div><br class=""></div><div>- Dave Sweeris</div></body></html>