I much prefer <font size="2"><span style="background-color:rgba(255,255,255,0)">(0 ... -9).by(-1) and (0 ..<<span></span> -10).by(-1)</span></font><br><br>On Wednesday, 6 April 2016, Dave Abrahams via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
on Tue Apr 05 2016, Xiaodi Wu <<a href="http://xiaodi.wu-AT-gmail.com" target="_blank">xiaodi.wu-AT-gmail.com</a>> wrote:<br>
<br>
> On Mon, Apr 4, 2016 at 1:22 PM, Dave Abrahams <<a href="javascript:;" onclick="_e(event, 'cvml', 'dabrahams@apple.com')">dabrahams@apple.com</a>> wrote:<br>
>><br>
>> on Sat Apr 02 2016, Xiaodi Wu <<a href="http://xiaodi.wu-AT-gmail.com" target="_blank">xiaodi.wu-AT-gmail.com</a>> wrote:<br>
>><br>
>>> [snip]<br>
>>><br>
>>> Not included:<br>
>>> 1. I know Ranges are in flux, so I've held off on extending Range with<br>
>>> a striding(by:) method in this proof-of-concept.<br>
>><br>
>> They're not in flux, except for not having been reviewed yet; they are<br>
>> settled in the swift-3-indexing-model branch.<br>
><br>
> Did not know that. Will have to study what's there in more detail.<br>
><br>
>>> 2. No attempt at the suggested stride(from:to:steps:) quite yet.<br>
>><br>
>> #1 and #2 are mutually exclusive; we prefer #1 as it removes questions<br>
>> about the meaning of "to" or "through."<br>
><br>
> I wasn't aware that was the thinking. Limiting strides to<br>
> `striding(by:)` removes the ability to express `stride(from: 0, to:<br>
> -10, by: -1)`<br>
<br>
IMO this:<br>
<br>
(-9...0).reverse()<br>
<br>
is better than<br>
<br>
stride(from: 0, to: -10, by: -1)<br>
<br>
What do you think?<br>
<br>
--<br>
Dave<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'swift-evolution@swift.org')">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>
</blockquote><br><br>-- <br>-- Howard.<br>