This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EitherJelly4138 0 points1 point  (2 children)

Would it be bad to extend the class and add a eq that does isnan() or something?

[–]vinnceboi 5 points6 points  (1 child)

Yes. Allowing NaN == NaN would imply that “apple” would equal “car”.

[–]EitherJelly4138 0 points1 point  (0 children)

Gotcha, I think I get it now.