<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Jul 4, 2016, at 2:39 PM, Karl Wagner via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div id="edo-message" class=""><div class="">-1. I like the underscore. If it turns out you do need the loop variable later, it's easy to see where to add it.<br class=""><br class=""><div style="font-family: 'Helvetica Neue','Helvetica',Helvetica,Arial,sans-serif;font:'-apple-system-body';" class="">Karl</div></div></div></div></div></blockquote><div><br class=""></div><div><div class="">-1 I agree with this and doing something a specific number of &nbsp;times without accessing the iteration counter is an edge case in my experience. Creating another syntax to save 4 characters for an edge case is a poor benefit/complexity tradeoff. &nbsp;Ignoring with an underscore is universal in Swift and, to me at least, expressive and intuitive.</div><div class=""><br class=""></div></div><blockquote type="cite" class=""><div class=""><div class=""><div id="edo-original" class=""><div class=""><br class=""><br class=""><blockquote type="cite" style="margin:1ex 0 0 0;border-left:1px #ccc solid;padding-left:0.5ex;" class=""><div class="">On Jul 1, 2016 at 9:38 AM, &lt;<a href="mailto:swift-evolution@swift.org" class="">Diego Barros via swift-evolution</a>&gt; wrote:<br class=""><br class=""></div><div class=""><div dir="ltr" class=""><div class="gmail_default"><font face="monospace, monospace" class="">When you want a simple `for` loop, for example:</font></div><div class="gmail_default"><font face="monospace, monospace" class=""><br class=""></font></div><div class="gmail_default"><p class=""><font face="monospace, monospace" class=""><span class="">for</span><span class=""> </span><span class="">_</span><span class=""> </span><span class="">in</span><span class=""> </span><span class="">1</span><span class="">...</span><span class="">10</span><span class=""> {</span></font></p>
</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px" class=""><div class="gmail_default"><p class=""><font face="monospace, monospace" class="">// do something 10 times</font></p></div></blockquote><div class="gmail_default"><p class=""><font face="monospace, monospace" class="">}</font></p><p class=""><font face="monospace, monospace" class=""><br class=""></font></p><p class=""><font face="monospace, monospace" class="">Clean-up and simplify the syntax by removing the&nbsp;superfluous&nbsp;underscore and `in`:</font></p><p class=""><font face="monospace, monospace" class=""><br class=""></font></p><p class=""><font face="monospace, monospace" class=""><span class="">for</span><span class=""> </span><span class="">1</span><span class="">...</span><span class="">10</span><span class=""> {</span></font></p></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px" class=""><div class="gmail_default"><p class=""><font face="monospace, monospace" class="">// do something 10 times</font></p></div></blockquote><div class="gmail_default"><div class="">









<br class="webkit-block-placeholder"></div><p class=""><span class=""><font face="monospace, monospace" class="">}</font></span></p></div><div class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><font face="monospace, monospace" class=""><br class=""></font><div class=""><font face="monospace, monospace" class="">-- diego</font></div></div></div></div></div></div>
</div>
_______________________________________________
swift-evolution mailing list
<a dir="ltr" href="mailto:swift-evolution@swift.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1" class="">swift-evolution@swift.org</a>
<a dir="ltr" href="https://lists.swift.org/mailman/listinfo/swift-evolution" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a>
</div></blockquote></div></div></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>