this post was submitted on 14 Nov 2026
373 points (97.2% liked)

Programmer Humor

34135 readers
1596 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] LillyPip@lemmy.ca 4 points 1 day ago (1 children)

Same reason NULL != NULL. It makes sense if you understand how these values work.

[–] SpaceNoodle@lemmy.world 17 points 1 day ago (2 children)
[–] LillyPip@lemmy.ca 9 points 1 day ago* (last edited 1 day ago) (1 children)
[–] SpaceNoodle@lemmy.world 17 points 1 day ago (1 children)

Ah, my brain was in C mode, where NULL is functionally 0. This is about the concept, which doesn't apply equally to all languages.

[–] LillyPip@lemmy.ca 8 points 1 day ago* (last edited 1 day ago)

Yep. There are some languages where this applies, because it’s a mathematical concept. The point is it’s the same ‘no value’ concept, which isn’t ~~shared by~~ implemented the same way by all languages.

C is strongly typed, and uses pointers, so NULL sort of intrinsically has a value in C.

edit: my wording was a bit off

[–] djmikeale@feddit.dk 5 points 1 day ago* (last edited 1 day ago)

You can kinda think of it as null meaning undefined. In this case, "undefined does not equal undefined" seems easier for me to wrap my head around