• just_an_average_joe@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      5 小时前

      It would be ((trick nor treat) or treat) so basically all the non-circle region and the treat circle is filled…

      After writing this, i am wondering if you actually needed the information or was it just the funny thing to say…

      Guys am I autistic?

      • xthexder@l.sw0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 小时前

        I had to double-take since in Python a common alternative to trick ? treat : notreat is (trick and treat) or notreat

        But I don’t think this translates to overlapping circles very well. “trick implies treat” is only defined inside the trick circle, outside is undefined if treat is true or not.

        I’m not going to draw a diagram, but here’s the “truth table” for A implies B:

        A, B, A -> B
        N, N, undefined
        N, Y, undefined
        Y, N, false
        Y, Y, true