The Picard ManeuverM to memes@lemmy.world • 4 months agoDon't do itlemmy.worldimagemessage-square34fedilinkarrow-up1192arrow-down112
arrow-up1180arrow-down1imageDon't do itlemmy.worldThe Picard ManeuverM to memes@lemmy.world • 4 months agomessage-square34fedilink
minus-squareZiglin (it/they)linkfedilinkEnglish1•4 months agoI understand that, it makes sense. But why does it not throw an error? The parameter is missing after all.
minus-square@takeda@lemm.eelinkfedilink2•4 months 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)linkfedilinkEnglish1•4 months 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-square@spooky2092@lemmy.blahaj.zonelinkfedilinkEnglish0•4 months 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 ()
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”