[swift-evolution] [Review] SE-0065 A New Model for Collections and Indices

Dave Abrahams dabrahams at apple.com
Mon Apr 11 18:54:09 CDT 2016


on Mon Apr 11 2016, Dave Abrahams <swift-evolution at swift.org> wrote:

> Thanks for your comments, Brent!
>
> on Sun Apr 10 2016, Brent Royal-Gordon <swift-evolution at swift.org> wrote:
>
>>> 	https://github.com/apple/swift-evolution/blob/master/proposals/0065-collections-move-indices.md
>>
>> Some questions and comments:
>>
>>> 		• Two for ranges that additionally conform to
>>> RandomAccessCollection (requiring bounds that are Strideablewith
>>> Stride conforming to Integer): CountableRange<T> and
>>> CountableClosedRange<T>. These types can be folded into Range and
>>> ClosedRange when Swift acquires conditional conformance capability.
>>
>> Does this mean that once we have conditional conformances,
>> HalfOpenRangeProtocol and ClosedRangeProtocol will most likely go
>> away?
>
> I'm not sure, honestly.

Reconsidering, they aren't used anywhere else in the standard library so
I'd say that is indeed likely.  In fact, something I'm working on at the
moment may make it happen sooner than that ;-).  Stay tuned.
-- 
Dave



More information about the swift-evolution mailing list