<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 30 Mar 2016, at 22:05, Ted F.A. van Gaalen via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Again I need to emphasize very strongly that this for-loop really </div><div class="">has absolutely </div><div class=""> nothing, nada, zilch, niente, nichts, niets, niks, rien, zero, nenio,</div><div class="">to do with the: </div><div class=""><br class=""></div><div class="">for i in stride(…. </div><div class=""><br class=""></div><div class="">or any other for in… variant working with collections.</div></div></div></blockquote><div><br class=""></div><div>Of course it does. Collection-based for loop can express exactly the same semantics, so why do you need a new construct when you already have a perfectly good one to do the job? </div><br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo;" class=""><div style="font-family: Helvetica; font-size: 14px;" class="">but, once again - </div><div style="font-family: Helvetica; font-size: 14px;" class="">provided you don’t want to do other operations</div><div style="font-family: Helvetica; font-size: 14px;" class="">on the generated collection before iterating - </div><div style="font-family: Helvetica; font-size: 14px;" class="">a collection is used here totally unnecessary, </div><div style="font-family: Helvetica; font-size: 14px;" class="">which puts a burden on performance because the contents </div><div style="font-family: Helvetica; font-size: 14px;" class="">of a collection are unpredictable </div></div></div></blockquote><div><br class=""></div>I find it quite irritating that you keep repeating these untrue facts. Again: both for loops compile to exactly the same code. <br class=""><div><br class=""></div><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo;" class=""><div style="font-family: Helvetica; font-size: 14px;" class="">It is also tedious to write and (as a matter of my personal taste) downright ugly.</div></div></div></blockquote><div><br class=""></div><div>Right, because </div><div><br class=""></div><div> for d in stride(from:10, to: 5, by: 0-.1, tolerance: 0.01) </div><div><br class=""></div><div>is that much more tedious to write than what you propose</div><div><br class=""></div><div>Best, </div><div><br class=""></div><div> Taras</div><div><br class=""></div><div><br class=""></div></div></body></html>