[swift-evolution] [Review] SE-0172: One-sided Ranges

Nevin Brackett-Rozinsky nevin.brackettrozinsky at gmail.com
Tue Apr 18 16:36:29 CDT 2017

>    - What is your evaluation of the proposal?
> Strong +1, especially for the unary operators. They make code clear,
concise, and elegant.

Pattern matching against one-sided ranges looks great, and being able to
use postfix “...” to create a sequence is niche but nifty.

>    - Is the problem being addressed significant enough to warrant a
>    change to Swift?
> Definitely. The excessive verbosity of “startIndex” and “endIndex” is a
drag on readability when subscripting.

>    - Does this proposal fit well with the feel and direction of Swift?
> Replacing a long awkward incantation with a simple and aesthetic
alternative is about as Swifty as it gets!

>    - If you have used other languages or libraries with a similar
>    feature, how do you feel that this proposal compares to those?
> Closest would be Matlab with colons for ranges and the “end” keyword. This
proposal is far superior.

>    - How much effort did you put into your review? A glance, a quick
>    reading, or an in-depth study?
> Participated the discussion when it came up on-list, and read through the
proposal again now that it’s up for review.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170418/f5e6b353/attachment.html>

More information about the swift-evolution mailing list