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

Programmer Humor

23366 readers
1258 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 4 days ago (1 children)
[–] [email protected] 23 points 3 days 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] 4 points 3 days ago

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