499
you are viewing a single comment's thread
view the rest of the comments
[-] davidagain@lemmy.world 8 points 6 days 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.

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

Programmer Humor

23417 readers
1715 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