2 ms·
An example when a==a is when a is NaN
by malkia 15y ago
An example when a==a is when a is NaN
- regularfry 15y agoYeah, but that's literally the only time it makes sense - when you've got a first-class "undefined" or "unknown" type - and if you're going down the path of letting user classes participate in that protocol, I suspect that allowing them to override == in a slightly funky way isn't enough.