<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="">Totally agree with Brandon. I don’t think that behavior is inconsistent.<div class=""><br class=""></div><div class="">-Thorsten</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 28.05.2016 um 22:18 schrieb Brandon Knope via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class=""></div><div class="">Doesn't this contextually make sense though?</div><div class=""><br class=""></div><div class="">for, when read:</div><div class="">"for each value in collection where some condition is met" do this loop</div><div class=""><br class=""></div><div class="">while, when read:</div><div class="">"while some condition where this constraint is met" do this loop&nbsp;</div><div class=""><br class=""></div><div class="">It could just be because I know the behavior and am use to it, but I think it makes sense contextually when used.&nbsp;</div><div class=""><br class=""></div><div class="">Brandon&nbsp;</div><div class=""><br class="">On May 28, 2016, at 4:06 PM, Xiaodi Wu via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class="">I'm just gotta quote from Advanced Swift:<br class=""><br class="">Note that the where clause [in a for loop] does not work like the where clause in a while
loop. In a while loop, iteration stops once the value is false, whereas in a for
<br class="">loop, it functions like filter.
<br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Sat, May 28, 2016 at 16:00 Haravikk &lt;<a href="mailto:swift-evolution@haravikk.me" class="">swift-evolution@haravikk.me</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="">
&gt; On 28 May 2016, at 20:21, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank" class="">xiaodi.wu@gmail.com</a>&gt; wrote:<br class="">
&gt;<br class="">
&gt; There's already an inconsistency in where clause behavior for `if` and `while` versus `for` loops. It's nice IMO that the former uses are eliminated in this proposal.<br class="">
<br class="">
Can you give an example? That sounds like something that should be addressed separately rather than just dropping it.<br class="">
Like I say I really like using it for basic bind + condition cases, so I’m very much opposed to just tossing where clauses.</blockquote></div>
</div></blockquote><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">swift-evolution mailing list</span><br class=""><span class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a></span><br class=""><span class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br class=""></div></blockquote></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=""></div></body></html>