this post was submitted on 17 May 2025
479 points (98.0% liked)

Programmer Humor

23331 readers
417 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
[–] davidagain@lemmy.world 8 points 21 hours ago

I always thought that NaN is required by IEEE rules to never equal any other number, including itself, because you can make NaN in different ways and this shouldn't result in equality or something, so C is wild but not javascript's fault.

The other three being true is definitely javascript's insane fault, though.