• dinomug
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 years ago

    This kind of combined operators are quite common in the competitive programming world, where the speed of coding is more important than readable.

    • Ephera
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      Yeah, still horrid for real-world programming, though, where readability is ten times as important as how quickly you can type it out.

      • tmpod@lemmy.pt
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        I’d argue the problem here is more the unary (in/de)crement operator. It isn’t really necessary and most of the time it doesn’t make stuff more readable.