Howard, this is also mentioned in the generics manifesto under &quot;Opening existentials,&quot; and it&#39;s received plentiful discussion and will surely receive more as these issues become addressed in future proposals. Let&#39;s not divert the conversation here about map and filter.<br><div class="gmail_quote"><div dir="ltr">On Mon, May 1, 2017 at 19:36 Howard Lovatt &lt;<a href="mailto:howard.lovatt@gmail.com">howard.lovatt@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, I know the change I suggested involves making generalised <span style="font-size:12.8px">existentials</span>. I am suggesting not making *any* changes until such effort is available. I understand that this would be after Swift 4. I think the wait would be worthwhile.<div><br></div><div>As an aside: Currently one of the big issues with generalised existentials in Swift is with Self (which you can think of as a form of generic argument). Currently:</div><div><br></div>    protocol Equatable {<br>        static func ==(lhs: Self, rhs: Self) -&gt; Bool<div>        ...<br><div>    }</div><div>    struct Int: Equatable { ... }<br>    let e1: Equatable = 1<br>    let e2: Equatable = 2<br>    if e1 == e2 { ... } // error: e1 and e2 don&#39;t necessarily have the same dynamic type<br></div><div><br></div><div>I would replace this with:</div><div><br></div><div>    protocol Equatable&lt;T&gt; { // Use T instead of Self<br>        static func ==(lhs: T, rhs: T) -&gt; Bool</div><div>        ...<br><div>    }<br>    struct Int: Equatable&lt;Int&gt; { ... }</div><div>    let e1: Equatable&lt;Int&gt; = 1<br>    let e2: Equatable&lt;Int&gt; = 2<br>    if e1 == e2 { ... } // No longer an error since they are both Equatable&lt;Int&gt;</div></div></div><div><br></div><div>As an aside on the aside, even better:</div><div><br></div><div><div><div>    protocol Equatable&lt;T = Self&gt; { // T defaults to Self<br>        static func ==(lhs: T, rhs: T) -&gt; Bool</div><div>        ...<br><div>    }<br>    struct Int: Equatable { ... } // T is Int, the default is Self</div><div>    let e1: Equatable = 1  // T is Int, the default is Self<br>    let e2: Equatable = 2 // T is Int, the default is Self<br>    if e1 == e2 { ... } // No longer an error since they are both Equatable&lt;Int&gt;</div></div></div></div><div><br></div><div>Everything I am suggesting is done in other languages and from my personal experience works out better.</div><div><br></div></div><div class="gmail_extra"></div><div class="gmail_extra"><br clear="all"><div><div class="m_-3826331308702640030gmail_signature" data-smartmail="gmail_signature">  -- Howard.<br></div></div></div><div class="gmail_extra">
<br><div class="gmail_quote">On 2 May 2017 at 09:53, Xiaodi Wu <span dir="ltr">&lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Howard, take a look at the generics manifesto section on generic protocols:<br><br><a href="https://github.com/apple/swift/blob/master/docs/GenericsManifesto.md" target="_blank">https://github.com/apple/swift/blob/master/docs/GenericsManifesto.md</a><br><br>It explains very nicely how what you&#39;re really asking for is not generic protocols but generalized existentials. This would be nice to have, but it&#39;s clearly not happening within the next month and it wouldn&#39;t change the solution for filter, for which this proposal is the obvious fix.<br><br><div class="gmail_quote"><div><div class="m_-3826331308702640030h5"><div dir="ltr">On Mon, May 1, 2017 at 18:09 Howard Lovatt via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3826331308702640030h5"><div dir="auto"><div><blockquote type="cite"><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px"><font color="#000000"><span style="background-color:rgba(255,255,255,0)">review of SE-0174 &quot;Change `filter` to return an associated type&quot; </span></font></p></blockquote></div></div><div dir="auto"><div><blockquote type="cite"><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px"><li style="box-sizing:border-box"><font color="#000000"><span style="background-color:rgba(255,255,255,0)">What is your evaluation of the proposal?</span></font></li></ul></blockquote>I think a change in this &#39;area&#39; is valuable because currently always returning an array from collection operations is limiting. However I think this proposal feels like &#39;papering&#39; over problems rather than fixing the root cause. I think it would be better to reject this and do two more adventurous proposals instead:</div><div><br></div><div>  1. Allow protocols to be generic, instead of associated types, so that you can write Sequence&lt;T&gt;</div><div>  2. Allow Self to accept a generic argument, so that you can write Self&lt;T&gt;</div><div><br></div><div>With these to, admittedly much more major changes, you can then write:</div><div><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box"><br></span></div><div><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">    protocol Sequence&lt;T&gt; {</span></div><div><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">        func </span><span style="background-color:rgba(255,255,255,0)"><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-en" style="box-sizing:border-box">filter</span>(<span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-en" style="box-sizing:border-box">_</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-smi" style="box-sizing:border-box">isIncluded</span>: (T) <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">throws</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">-&gt;</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">Bool</span>) <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">rethrows</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">-&gt;</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">Sequence&lt;T&gt;</span></span></div><div><span style="background-color:rgba(255,255,255,0)"><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">        </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">func map&lt;M&gt;</span>(<span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-en" style="box-sizing:border-box">_</span> mapper: (T) <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">throws</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">-&gt;</span> M) <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">rethrows</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">-&gt;</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">Sequence&lt;M&gt;</span></span></div><div><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">    }</span></div><div><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">    extension</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-en" style="background-color:rgba(255,255,255,0);box-sizing:border-box"><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">RangeReplaceableCollection</span></span><span style="background-color:rgba(255,255,255,0)"> {</span></div><div><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">        func</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-en" style="background-color:rgba(255,255,255,0);box-sizing:border-box">filter</span><span style="background-color:rgba(255,255,255,0)">(</span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-en" style="background-color:rgba(255,255,255,0);box-sizing:border-box">_</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-smi" style="background-color:rgba(255,255,255,0);box-sizing:border-box">isIncluded</span><span style="background-color:rgba(255,255,255,0)">: (T</span><span style="background-color:rgba(255,255,255,0)">) </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">throws</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">-&gt;</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="background-color:rgba(255,255,255,0);box-sizing:border-box">Bool</span><span style="background-color:rgba(255,255,255,0)">) </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">rethrows</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">-&gt;</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="background-color:rgba(255,255,255,0);box-sizing:border-box">Self&lt;T&gt;</span><span style="background-color:rgba(255,255,255,0)"> { </span></div><div><span style="background-color:rgba(255,255,255,0)"></span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">            var</span><span style="background-color:rgba(255,255,255,0)"> result </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">=</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="background-color:rgba(255,255,255,0);box-sizing:border-box">Self&lt;T&gt;</span><span style="background-color:rgba(255,255,255,0)">() </span></div><div><span style="background-color:rgba(255,255,255,0)"></span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">            for</span><span style="background-color:rgba(255,255,255,0)"> element </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">in</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="background-color:rgba(255,255,255,0);box-sizing:border-box">self</span><span style="background-color:rgba(255,255,255,0)"> { </span></div><div><span style="background-color:rgba(255,255,255,0)"></span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">                if</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">try</span><span style="background-color:rgba(255,255,255,0)"> </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="background-color:rgba(255,255,255,0);box-sizing:border-box">isIncluded</span><span style="background-color:rgba(255,255,255,0)">(element) { </span></div><div><span style="background-color:rgba(255,255,255,0)">                     result.</span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="background-color:rgba(255,255,255,0);box-sizing:border-box">append</span><span style="background-color:rgba(255,255,255,0)">(element) </span></div><div><span style="background-color:rgba(255,255,255,0)">                }</span></div><div><span style="background-color:rgba(255,255,255,0)">            } </span></div><div><span style="background-color:rgba(255,255,255,0)"></span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="background-color:rgba(255,255,255,0);box-sizing:border-box">           return</span><span style="background-color:rgba(255,255,255,0)"> result </span></div><div><span style="background-color:rgba(255,255,255,0)">        } </span></div><div><div><span style="background-color:rgba(255,255,255,0)"><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">        </span><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">func map&lt;M&gt;</span>(<span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-en" style="box-sizing:border-box">_</span> mapper: (T) <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">throws</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">-&gt;</span> M) <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">rethrows</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">-&gt;</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">Self&lt;M&gt;</span> { </span></div><div><span style="background-color:rgba(255,255,255,0)"><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">            var</span> result <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">=</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">Self&lt;M&gt;</span>() </span></div><div><span style="background-color:rgba(255,255,255,0)"><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">            for</span> element <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">in</span> <span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">self</span> { </span></div><div><span style="background-color:rgba(255,255,255,0)">                try result.<span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-c1" style="box-sizing:border-box">append</span>(mapper(element))</span></div><div><span style="background-color:rgba(255,255,255,0)">            } </span></div><div><span style="background-color:rgba(255,255,255,0)"><span class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390pl-k" style="box-sizing:border-box">           return</span> result </span></div><div><span style="background-color:rgba(255,255,255,0)">        } </span></div></div><div><span style="background-color:rgba(255,255,255,0)">    }</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Which I think both reads better and is more powerful since it allows map to be written also.</span></div><div></div></div><div dir="auto"><div><br><blockquote type="cite"><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px"><li style="box-sizing:border-box;margin-top:0.25em"><font color="#000000"><span style="background-color:rgba(255,255,255,0)">Is the problem being addressed significant enough to warrant a change to Swift?</span></font></li></ul></blockquote></div></div><div dir="auto"><div><div>Yes, return an array is a real pain</div></div></div><div dir="auto"><div><br><blockquote type="cite"><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px"><li style="box-sizing:border-box;margin-top:0.25em"><font color="#000000"><span style="background-color:rgba(255,255,255,0)">Does this proposal fit well with the feel and direction of Swift?</span></font></li></ul></blockquote></div></div><div dir="auto"><div><div>Yes and no, really smacks of papering over other flaws. Might box Swift into a corner were other problems can&#39;t be fixed because the underlying, real, problems still remain.</div></div></div><div dir="auto"><div><br><blockquote type="cite"><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px"><li style="box-sizing:border-box;margin-top:0.25em"><font color="#000000"><span style="background-color:rgba(255,255,255,0)">If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?</span></font></li></ul></blockquote></div></div><div dir="auto"><div><div>Virtually all other languages I have used, e.g. Java, Scala, use the solution I presented above. </div></div></div><div dir="auto"><div><br><blockquote type="cite"><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px"><li style="box-sizing:border-box;margin-top:0.25em"><font color="#000000"><span style="background-color:rgba(255,255,255,0)">How much effort did you put into your review? A glance, a quick reading, or an in-depth study?</span></font></li></ul></blockquote></div></div><div dir="auto"><div>Have been bitten by this and have written my own collection hierarchy to overcome this limitation, and others, of the current library. <br><br><div>-- Howard.</div></div></div><div dir="auto"><div><br>On 29 Apr 2017, at 10:06 am, Douglas Gregor &lt;<a href="mailto:dgregor@apple.com" target="_blank">dgregor@apple.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">Hello Swift community,</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">The review of SE-0174 &quot;Change `filter` to return an associated type&quot; begins now and runs through May 3, 2017. The proposal is available here:</p><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229);background-color:rgb(255,255,255)"><div style="box-sizing:border-box;margin-top:0px;margin-bottom:0px"><font color="#6a737d" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol" size="3"><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0174-filter-range-replaceable.md" target="_blank">https://github.com/apple/swift-evolution/blob/master/proposals/0174-filter-range-replaceable.md</a></font></div></blockquote><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">Reviews are an important part of the Swift evolution process. All reviews should be sent to the swift-evolution mailing list at</p><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;color:rgb(106,115,125);border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><div style="box-sizing:border-box;margin-top:0px;margin-bottom:0px"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">or, if you would like to keep your feedback private, directly to the review manager. When replying, please try to keep the proposal link at the top of the message:</p><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229);background-color:rgb(255,255,255)"><p style="color:rgb(106,115,125);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;box-sizing:border-box;margin-top:0px;margin-bottom:16px">Proposal link:</p><blockquote style="box-sizing:border-box;margin:0px;padding:0px 1em;border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229)"><div style="box-sizing:border-box;margin-top:0px;margin-bottom:0px"><font color="#6a737d" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol" size="3"><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0174-filter-range-replaceable.md" target="_blank">https://github.com/apple/swift-evolution/blob/master/proposals/0174-filter-range-replaceable.md</a></font></div></blockquote></blockquote><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;color:rgb(106,115,125);border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><div style="box-sizing:border-box;margin-top:0px;margin-bottom:0px">Reply text</div></blockquote><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;color:rgb(106,115,125);border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><blockquote style="box-sizing:border-box;margin:0px;padding:0px 1em;border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229)"><div style="box-sizing:border-box;margin-top:0px;margin-bottom:0px">Other replies</div></blockquote></blockquote><h5 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;font-size:0.875em;line-height:1.25;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)"><a id="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390user-content-what-goes-into-a-review-1" class="m_-3826331308702640030m_-3014924675851174157m_-4476559238435470390anchor" href="https://github.com/apple/swift-evolution#what-goes-into-a-review-1" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u></u><u></u><u></u><u></u></a>What goes into a review?</h5><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">The goal of the review process is to improve the proposal under review through constructive criticism and, eventually, determine the direction of Swift. When writing your review, here are some questions you might want to answer in your review:</p><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><li style="box-sizing:border-box">What is your evaluation of the proposal?</li><li style="box-sizing:border-box;margin-top:0.25em">Is the problem being addressed significant enough to warrant a change to Swift?</li><li style="box-sizing:border-box;margin-top:0.25em">Does this proposal fit well with the feel and direction of Swift?</li><li style="box-sizing:border-box;margin-top:0.25em">If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?</li><li style="box-sizing:border-box;margin-top:0.25em">How much effort did you put into your review? A glance, a quick reading, or an in-depth study?</li></ul><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">More information about the Swift evolution process is available at</p><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;color:rgb(106,115,125);border-left-width:0.25em;border-left-style:solid;border-left-color:rgb(223,226,229);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><div style="box-sizing:border-box;margin-top:0px;margin-bottom:0px"><a href="https://github.com/apple/swift-evolution/blob/master/process.md" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration:none" target="_blank">https://github.com/apple/swift-evolution/blob/master/process.md</a></div></blockquote><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">Thank you,</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">-Doug Gregor</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)">Review Manager</p></div></blockquote></div><div dir="auto"><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution-announce mailing list</span><br><span><a href="mailto:swift-evolution-announce@swift.org" target="_blank">swift-evolution-announce@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution-announce" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution-announce</a></span><br></div></blockquote></div></div></div>_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>
</blockquote></div><br></div></blockquote></div>