• petersr@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 month ago

    Would you say that it reads better as “not x” or “x not” (if we remove all special characters)?

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      I mean, that is more obvious and more readable.

      But what I really don’t like about it, is that it’s less clear to what it applies. For example:

      not list.isEmpty() and x > 3
      

      Is that not (a and b) or (not a) and b?
      Obviously, you can define precedence rules, like there also is for !, but that’s again just additional things to learn.
      I’m definitely not generally opposed to special characters. I do also hate significant whitespace, because I find that less readable than braces.