@[email protected] to Comic StripsEnglish • edit-21 year agoI AM MISTER SANTAlemmus.orgimagemessage-square20fedilinkarrow-up1631arrow-down112file-text
arrow-up1619arrow-down1imageI AM MISTER SANTAlemmus.org@[email protected] to Comic StripsEnglish • edit-21 year agomessage-square20fedilinkfile-text
minus-squareRentlarlinkfedilink41•edit-21 year agoMr Santa checks if you are naughty || nice to see if you are eligible for a present. Ho ho ho. Everyone is eligible for a present.
minus-square@[email protected]linkfedilink7•1 year agoNo no no. You’re checking two booleans there. People who are naughty, nice, or both get a present. People who are neither naughty or nice get nothing.
Mr Santa checks if you are
naughty || nice
to see if you are eligible for a present.
Ho ho ho. Everyone is eligible for a present.
No no no. You’re checking two booleans there. People who are naughty, nice, or both get a present. People who are neither naughty or nice get nothing.
But what if naughty = !nice
((nice)? ‘present’ : ‘coal’);
Ash silently weeps.
Won’t that always come out as true?
That’s correct, hence everyone is eligible.
What if you’re neutral?
Mr Santa crashes…