<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 10, 2016 at 2:42 PM, Christopher Kornher <span dir="ltr">&lt;<a href="mailto:ckornher@me.com" target="_blank">ckornher@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>-1 </div><div><br></div><div>An alternative would be to:</div><div><br></div><div><span style="white-space:pre-wrap">        </span>1) State clearly in all relevant documentation that ‘where’ filters and  ‘while’ terminates.</div><div><span style="white-space:pre-wrap">        </span>2) Eliminate the use of ‘where’ within ‘while’ clauses.</div><div><br></div><div>This seems pretty straightforward to me. The principle in  #1 should be easy for even beginners to grasp.</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><br></blockquote><div>Using ‘guard’ statements instead of ‘where’ clauses adds a lot of visual noise for me. </div></div></div></blockquote><div><br></div><div>Yes, that is one alternative mentioned in the proposal.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><blockquote type="cite"><div><div class="h5"><div>On Jun 10, 2016, at 1:08 PM, Erica Sadun via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br></div></div><div><div><div><div class="h5"><br><blockquote type="cite">On Jun 10, 2016, at 1:06 PM, Rob Norback via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br><br>Following Brent&#39;s logic that the for-in where should mimic the switch statement functionality, then this example:<br><br>for (eachKey, eachValue) <br>where eachValue &gt; 5 <br>in theKeyValuePairs {... }<br><br></blockquote><br>&lt;squish&gt;<br><br>I finally convinced myself of which direction I wanted to go: <a href="https://github.com/apple/swift-evolution/pull/362/files" target="_blank">https://github.com/apple/swift-evolution/pull/362/files</a><br><br>Related blog post here: <a href="http://ericasadun.com/2016/06/10/swift-where-oh-where-can-my-where-clause-be/" target="_blank">http://ericasadun.com/2016/06/10/swift-where-oh-where-can-my-where-clause-be/</a><br><br>Big thanks to Brent and Wux.<br><br>-- E<br><br><br><br><br></div></div><span class="">_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></span></div></div></blockquote></div><br></div></blockquote></div><br></div></div>