• model_tar_gz@lemmy.world
    cake
    link
    fedilink
    arrow-up
    4
    ·
    11 months ago

    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.

      • model_tar_gz@lemmy.world
        cake
        link
        fedilink
        arrow-up
        2
        ·
        11 months ago

        Yup you’re more right than I was. An empty array is still Falsy even though it exists. I accept the correction.