this post was submitted on 17 May 2025
501 points (97.9% liked)

Programmer Humor

23417 readers
1557 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 62 points 1 week ago (1 children)
[–] [email protected] 24 points 1 week ago (1 children)

That one wasn't the one I had issues with, since the concept is essentially the same across all languages. We say it's false because we can't conclusively say that it's true. Same as the reason why null != null in SQL.

[–] [email protected] 5 points 1 week ago

It also makes a lot of conditional expressions less complicated because comparisons of all kind against NaN return false.