News for hackers. Stuff that matters.
Re:My Opinion on “5” == 5 by int_19h on Thursday July 29, 2021 @04:05PM (#28000804)
A universal type doesn't necessarily have to be arbitrarily comparable between instances. The strictly correct response to "5"==5 really is "not comparable"; it's just a question of how you choose to surface it. One popular choice is to define the equality operator as returning false if the operands aren't comparable - but then you have to do the reverse for inequality, which is far less obvious.

There are no comments on this comment yet.