<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 25 Jul 2016, at 09:10, Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello Swift community,<br class=""><br class="">The review of "SE-0132: Rationalizing Sequence end-operation names" begins now and runs through July 26. Apologies for the short review cycle, but we’re right up against the end of source breaking changes for Swift 3. The proposal is available here:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0132-sequence-end-ops.md" class="">https://github.com/apple/swift-evolution/blob/master/proposals/0132-sequence-end-ops.md</a><br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* What is your evaluation of the proposal?<br class=""></div></div></blockquote><div><br class=""></div><div>+1 to the method renames.</div><div>-1 to the slice syntax proposed.</div><div><br class=""></div><div>I find the introduction of unary operators confusing. I don't think it's good design that you need to remove a space when moving from the old syntax to the new one:</div><div><br class=""></div><div><font face="Menlo" class=""> array[array.startIndex ..< someIndex] // before</font></div><div><font face="Menlo" class=""> array[..<someIndex] // after</font></div><div><br class=""></div><div>and likewise, that you need to add parentheses here:</div><div><br class=""></div><div><font face="Menlo" class=""> array[array.startIndex ..< someIndex - 1] // before</font></div><div><font face="Menlo" class=""> array[..<(someIndex - 1)] // after</font></div><div><br class=""></div><div>OTOH, I would be okay if the proposal didn't implement unary operators but only the <font face="Menlo" class="">Optional<Index></font> overloads of `<font face="Menlo" class="">...</font>` and `<font face="Menlo" class="">..<</font>`:</div><div><br class=""></div><div><div><font face="Menlo" class=""> array[nil ..< someIndex] // first example</font></div><div><font face="Menlo" class=""> array[nil ..< someIndex - 1] // second example</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class="">That said, maybe it's best to defer that part of the proposal until a later time and stick to <font face="Menlo" class="">prefix(upTo:)</font>, <font face="Menlo" class="">prefix(through:)</font>, and <font face="Menlo" class="">suffix(from:)</font> for now.</div><div class=""><br class=""></div></div><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* Is the problem being addressed significant enough to warrant a change to Swift?</div></div></blockquote><div><br class=""></div><div>Yes.</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* Does this proposal fit well with the feel and direction of Swift?</div></div></blockquote><div><br class=""></div><div>Yes.</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?</div></div></blockquote><div><br class=""></div><div>N/A</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* How much effort did you put into your review? A glance, a quick reading, or an in-depth study?<br class=""></div></div></blockquote></div><div class=""><br class=""></div>Quick reading.<div class=""><br class=""></div><div class="">Thanks to Brent for the effort!<br class=""><div class=""><br class=""></div><div class="">— Pyry</div><div class=""><br class=""></div></div></body></html>