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

2015-12-05 Thread Chris Amanse via swift-corelibs-dev
they > exist in the global scope and it is good to consider the ramifications of > what even something as simple as comparison of dates has in general. > > On Dec 5, 2015, at 3:36 PM, Chris Amanse via swift-corelibs-dev < > swift-corelibs-dev@swift.org> wrote: > > Hello Swif

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

2015-12-05 Thread Chris Amanse via swift-corelibs-dev
Hello Swift Developers, I think it's a good idea to conform NSDate to the Comparable protocol, so instead of using: if someDate.compare(today) == .OrderedAscending { } Developers can easily compare using compare dates using comparison operators: if someDate < today { } In my opinion, the code