The Picard Maneuver@lemmy.worldM to memes@lemmy.world · 5 days agoDon't do itlemmy.worldimagemessage-square34fedilinkarrow-up1191arrow-down115
arrow-up1176arrow-down1imageDon't do itlemmy.worldThe Picard Maneuver@lemmy.worldM to memes@lemmy.world · 5 days agomessage-square34fedilink
minus-squareZiglin (it/they)@lemmy.worldlinkfedilinkEnglisharrow-up1·4 days agoI understand that, it makes sense. But why does it not throw an error? The parameter is missing after all.
minus-squaretakeda@lemm.eelinkfedilinkarrow-up2·4 days agoActually the explanation is wrong. not() is actually not () not is a keyword not a function. Boolean of empty tuple is False and then not negates it. I explained it better here: https://lemm.ee/post/61594443/19783421
minus-squareZiglin (it/they)@lemmy.worldlinkfedilinkEnglisharrow-up1·4 days agoThat makes a lot more sense, thanks I did see in the syntax highlighting that it was a keyword but forgot that none of them took parameters.
minus-squarespooky2092@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up1arrow-down1·4 days agoNo it’s not, “” (a null/empty string) is the parameter. Not every function needs a parameter to be valid, and negation is one of them. Negating nothing is something, so “not()” = “not(null)” = “not(false)” = “true”
I understand that, it makes sense. But why does it not throw an error? The parameter is missing after all.
Actually the explanation is wrong.
not()
is actually
not
is a keyword not a function.Boolean of empty tuple is
False
and thennot
negates it.I explained it better here:
https://lemm.ee/post/61594443/19783421
That makes a lot more sense, thanks I did see in the syntax highlighting that it was a keyword but forgot that none of them took parameters.
No it’s not, “” (a null/empty string) is the parameter. Not every function needs a parameter to be valid, and negation is one of them. Negating nothing is something, so “not()” = “not(null)” = “not(false)” = “true”