[swift-users] == works for NSObject? but not for Equatable?

Jens Alfke jens at mooseyard.com
Wed Apr 27 12:18:27 CDT 2016


Oh, never mind — I forgot that you can’t compare two Equatable values directly, only two values of the same concrete type that implements Equatable.

I’m still thinking in Objective-C, clearly…

—Jens


More information about the swift-users mailing list