Why can’t Swift’s greater-than or less-than operators compare optionals when the equality operators can?
It makes perfect sense for the equality operator to support optionals, because it’s absolutely clear that for any integer valued variable i: nil == nil nil != i i != nil i == i if and only if their values are the same On the other hand, it’s not clear how comparison to nil should … Read more