See:<br><br> // FIXME(ABI)(compiler limitation): We'd like to name this type "Distance"<br> // but for <rdar://problem/17619038><br><div class="gmail_quote"><div dir="ltr">On Sun, May 1, 2016 at 20:51 Dave Abrahams <<a href="mailto:dabrahams@apple.com">dabrahams@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
on Sun May 01 2016, Xiaodi Wu <<a href="http://xiaodi.wu-AT-gmail.com" rel="noreferrer" target="_blank">xiaodi.wu-AT-gmail.com</a>> wrote:<br>
<br>
> On Sun, May 1, 2016 at 7:01 PM, Dave Abrahams via swift-evolution<br>
> <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br>
><br>
> on Sun May 01 2016, Xiaodi Wu <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br>
><br>
> > A clash of names is inelegant, but in practice, I'm not actually sure that<br>
> > there's really a lack of clarity. IMO, `stride(of: Int)` is not really<br>
> > misinterpretable as anything else.<br>
><br>
> I disagree, especially since `Strideable` has an associated `Stride` type.<br>
><br>
> Is the naming infelicitous? Yes, no argument from me here.<br>
><br>
> But: I'd guess that Strideable, being a protocol for numeric types,<br>
<br>
Not only those. UnsafePointer is strideable, for example.<br>
<br>
> comes into the picture mostly when implementing generic numeric<br>
> algorithms, and its associated Stride type (if I remember correctly<br>
> from reading code comments) should really be Distance but for current<br>
> limitations in the language.<br>
<br>
I don't *think* so.<br>
<br>
> I have no doubt that someone who knows the insides of Strideable to<br>
> that level of detail has the expertise and imagination to conjure up a<br>
> meaning for `stride(of: Int)` other than the stride size in bytes of<br>
> consecutive Ints, but I venture that it'd still take some effort and<br>
> wouldn't be an unintentional misunderstanding :P<br>
<br>
You're going to see a definition of Int.Stride when you look at the members.<br>
<br>
--<br>
Dave<br>
</blockquote></div>