▲ 331 ▼ What the fuck javascript (gregtech.eu) submitted 1 day ago by lena@gregtech.eu to c/programmer_humor@programming.dev 50 comments fedilink hide all child comments
[–] LillyPip@lemmy.ca 9 points 22 hours ago* (2 children) https://richiban.uk/2016/12/21/does-null-equal-null/ ISNULL may be true, whilst NULL != NULL. NULL is not a value. permalink fedilink source parent hideshow 2 child comments replies: [–] SpaceNoodle@lemmy.world 14 points 21 hours ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] LillyPip@lemmy.ca 5 points 21 hours ago* (last edited 20 hours 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 permalink fedilink source parent
[–] SpaceNoodle@lemmy.world 14 points 21 hours ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] LillyPip@lemmy.ca 5 points 21 hours ago* (last edited 20 hours 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 permalink fedilink source parent
[–] LillyPip@lemmy.ca 5 points 21 hours ago* (last edited 20 hours 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 permalink fedilink source parent