Re: [swift-corelibs-dev] [swift-evolution] Proposal: Conforming NSDate to Comparable

2015-12-06 Thread Stephen Celis via swift-corelibs-dev
Seems to me that anything with `-compare:` could conform to Comparable. The list, however, is surprisingly short, and half bridge over to native Swift types that are already Comparable: - [NSDate compare:] - [NSIndexPath compare:] - [NSNumber compare:] - [NSString compare:] Looks like NSIndexPa

Re: [swift-corelibs-dev] Proposal: Conforming NSDate to Comparable

2015-12-06 Thread Tony Parker via swift-corelibs-dev
Hi Chris, Thanks for bringing this idea to the list. Is NSDate really the only thing that we want to conform to comparable, or is there a set of classes which should do so? I’d like to think about the larger set of consequences here (and if possible, deal with one coherent answer for all of Fo

Re: [swift-corelibs-dev] [swift-evolution] Proposal: Conforming NSDate to Comparable

2015-12-06 Thread Alexander Kolov via swift-corelibs-dev
I also agree, since all methods already exist in NSDate. Conforming it to Comparable and Strideable is just making interface more in line with Swift spirit. > On Dec 6, 2015, at 11:05 AM, Brent Royal-Gordon via swift-corelibs-dev > wrote: > >> I agree that it makes perfect sense for NSDate to