• rtxn@lemmy.world
    link
    fedilink
    arrow-up
    62
    arrow-down
    1
    ·
    edit-2
    16 days ago

    That’s not the truth. It’s one of infinitely many truths. They hated him because Jesus didn’t understand how implicit type casting between int and bool worked.

    • owsei
      link
      fedilink
      arrow-up
      15
      ·
      edit-2
      16 days ago

      Lambda calculus gang has entered the chat with λxy.x as The Truth™

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        15 days ago

        I told them to leave a pamphlet and fuck off, but the pamphlet was a fixed-point combinator that put them back on my porch again.

    • Tanoh@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      16 days ago

      And then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.

      • rtxn@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        16 days ago

        I don’t find it confusing at all. The function doesn’t test equivalence, and the return value is not meant to be a logical value.

    • Tja
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      15 days ago

      if ((1 > 0) == 1)
      printf("The OG truth\n");

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      11
      ·
      16 days ago

      Technically, if you ignore the inherent contradiction in the name, some languages treat NaN as a falsy number and the IEEE standards admit trillions of possible NaNs.