Gollum to Programmer Humor@programming.devEnglish • 11 months agoActually not funnyi.imgur.comimagemessage-square40fedilinkarrow-up1321cross-posted to: programmerhumor@lemmy.ml
arrow-up1321imageActually not funnyi.imgur.comGollum to Programmer Humor@programming.devEnglish • 11 months agomessage-square40fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-square@csm10495@sh.itjust.workslinkfedilinkEnglish3•edit-211 months agoIsn’t NULL a macro in C for 0? So doesn’t that mean these items are free?
minus-squarekamenLady.linkfedilink2•11 months agoNull is zero in german - so this must be free, it’s a german shop
minus-squareHauslinkfedilink2•11 months agoI’d guess, in context, it’s a floating point price column that hasn’t been set, and the table designer didn’t specify the column to be NOT NULL.
minus-square@csm10495@sh.itjust.workslinkfedilink2•11 months agoI guess Rust would have solved the problem as well.
minus-square@coloredgrayscale@programming.devlinkfedilink2•11 months agoIn a way it’s still the same with more modern languages. Especially OOP, setting an object to Null is just setting the address pointer to to 0x00000000. Hence NullPointerException / NullReferenceException or similar, depending on the language.
Isn’t NULL a macro in C for 0? So doesn’t that mean these items are free?
Null is zero in german - so this must be free, it’s a german shop
I’d guess, in context, it’s a floating point price column that hasn’t been set, and the table designer didn’t specify the column to be NOT NULL.
I guess Rust would have solved the problem as well.
In a way it’s still the same with more modern languages. Especially OOP, setting an object to Null is just setting the address pointer to to 0x00000000.
Hence NullPointerException / NullReferenceException or similar, depending on the language.
deleted by creator