[swift-evolution] [Review] SE-0191: Eliminate IndexDistance from Collection

Douglas Gregor dgregor at apple.com
Mon Nov 27 23:00:47 CST 2017



> On Nov 27, 2017, at 5:58 PM, Guillaume Lessard via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
> 
>> On Nov 27, 2017, at 18:34, Douglas Gregor via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> Hello Swift community,
>> 
>> The review of SE-0191 "Eliminate IndexDistance from Collection" begins now and runs through December 3, 2017. 
> [snip]
>> • What is your evaluation of the proposal?
> 
> I approve heartily.
> I previously complained about this on the swift-users list, making mostly the same arguments against the idea of not using Int. The best argument against that I know is a file-mapping collection on a 32-bit platform; if this matters, IndexDistance could simply be Int64 instead of Int.

I’d like to point out that using Int64 would likely cause just as much numericCast'ing around as IndexDistance, so I don’t think that’s a viable alternative.

(Thanks for the review!)

	- Doug



More information about the swift-evolution mailing list