You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can not commit to anything re: Darwin, though your interest is noted. Would it make your life easier if they weren’t Comparable (i.e., if compatibility was restored?)
The question more specifically is: given that it is understood you’d like them to be Comparable everywhere; assuming the status quo on Darwin remains as is; would you prefer they stay the same (not Comparable) right now?
The difference is a maintenance burden at lease for me, so ideally both on Darwin and SCF they should be Comparable. Reverting the conformance on SCF is not what I want.
So
Please consider for making them Comparable on Darwin (Foundation Overlay)
If it can't happen at all, let's close the issue (marking as "wont' fix")
Environment
Trunk: swift-DEVELOPMENT-SNAPSHOT-2019-05-11-a and later
5.1: swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-21-a and later
Additional Detail from JIRA
md5: bddd247a59722f1d5b5bd66660a67999
Issue Description:
Because of https://github.com/apple/swift-corelibs-foundation/pull/2234 some Foundation reference types are now Comparable on Linux, but not on Darwin (Objective-C Foundation).
NSNumber
NSString
NSDateInterval
NSDate
NSIndexPath
This mismatch introduces source incompatibility between Darwin and Linux. https://github.com/Quick/Nimble/blob/54d4f5a71ca62eb62032251cf4661bbdebe2645c/Sources/Nimble/Matchers/MatcherProtocols.swift#L131-L157 and https://travis-ci.org/Quick/Nimble/builds/539263555 is an actual case.
The fact that the types are now Comparable is desirable I think, so making them conform to Comparable on Darwin as well will be good.
The text was updated successfully, but these errors were encountered: