[swift-evolution] [Review] SE-0191: Eliminate IndexDistance from Collection
lists at maven.de
Tue Nov 28 02:37:30 CST 2017
> On 28. Nov 2017, at 02:34, Douglas Gregor via swift-evolution <swift-evolution at swift.org> wrote:
> The review of SE-0191 "Eliminate IndexDistance from Collection" begins now and runs through December 3, 2017. The proposal is available here:
> • What is your evaluation of the proposal?
> • Is the problem being addressed significant enough to warrant a change to Swift?
Yes, the motivation of “less difficulty of programming against generic collections” is good enough.
> • Does this proposal fit well with the feel and direction of Swift?
I feel it does. Things shouldn’t be generic “just because we can”. Swift has made a fairly firm recommendation on integer sizes and signedness, and that should continue into index distances in collections.
> • If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?
C++ often has a difference_type in its containers, but hardly anyone uses that correctly (size_t vs difference_type).
> • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
More information about the swift-evolution