@RealWrastling@lemmy.world to Ask Lemmy@lemmy.world • 11 months agoWhat's a word you haven't heard used in years?message-square196fedilinkarrow-up1163
arrow-up1163message-squareWhat's a word you haven't heard used in years?@RealWrastling@lemmy.world to Ask Lemmy@lemmy.world • 11 months agomessage-square196fedilink
minus-square@model_tar_gz@lemmy.worldlinkfedilink4•11 months agoJust remember that even though None is Falsy, an array of Nones is Truthy. Gets me every time. I fucking understand it logically (because the array itself exists) but damnit if I can make my lizard brain comprehend it while coding it.
minus-square@Skyhighatrist@lemmy.calinkfedilink4•11 months ago because the array itself exists More specifically it’s because the array isn’t empty.
minus-square@model_tar_gz@lemmy.worldlinkfedilink2•11 months agoYup you’re more right than I was. An empty array is still Falsy even though it exists. I accept the correction.
Just remember that even though None is Falsy, an array of Nones is Truthy. Gets me every time. I fucking understand it logically (because the array itself exists) but damnit if I can make my lizard brain comprehend it while coding it.
More specifically it’s because the array isn’t empty.
Yup you’re more right than I was. An empty array is still Falsy even though it exists. I accept the correction.