I can’t believe nobody has done this list yet. I mean, there is one about names, one about time and many others on other topics, but not one about languages yet (except one honorable mention that comes close). So, here’s my attempt to list all the misconceptions and prejudices I’ve come across in the course of my long and illustrious career in software localisation and language technology. Enjoy – and send me your own ones!

  • hddsx@lemmy.ca
    link
    fedilink
    arrow-up
    1
    arrow-down
    9
    ·
    edit-2
    9 hours ago

    Technically, 0 is false and anything else is true. !0 is 1, though, IIRC

    • Crestwave@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      17 hours ago

      As far as C goes, 1 is true and 0 is false.

      In terms of POSIX exit codes, 0 is success and 1 is error.

      • hddsx@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        9 hours ago

        Jesus. I mistyped that horrendously to make a point about !0

        I read my comment just now waking up and went wtf

    • MyNameIsRichard@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      16 hours ago

      That’s what I meant so I’ve edited my comment to hopefully make that a bit clearer. Having actually tested it, because in C++ I use true/false, it is 0 that equals false and anything else is true. You’ll have to forgive my lack of clarity. It’s 03:02 and I’ve had about 2 hours sleep tonight and won’t be getting any more. Time for a coffee.