-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Don't merge] Use conditional conformances to implement Equatable for Optional, Array and Dictionary #12868
Conversation
Resolves rdar://problem/35480952.
) -> Bool { | ||
return !(lhs == rhs) | ||
/// Returns `true` if the arrays do not contain the same elements. | ||
@_inlineable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@airspeedswift We no longer need to define operator!=
do we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless its implementation is more efficient than !(==)
.
/// - lhs: An optional value to compare. | ||
/// - rhs: Another optional value to compare. | ||
@_inlineable | ||
public static func !=(lhs: Wrapped?, rhs: Wrapped?) -> Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
@swift-ci Please smoke test |
@swift-ci please smoke test compiler performance |
I'm taking this over in #12910, and it's really, really close |
No description provided.