• squaresinger@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      Works fine in any language I ever used.

      I’m honestly quite surprised that this very basic language feature is even a matter of discussion here.

      • Sylvartas@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        It certainly makes me question a lot of things. This sub somehow manages to both feed my impostor syndrome and makong me feel like a genius programmer depending on the thread.

        • squaresinger@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 day ago

          Totally, yes. I guess there’s a ton of non-programmers and total beginners in this community.

          But sometimes there are some crazy good programmers here as well.

          What’s really weird though is that I got two downvotes a bit further up for claiming that unary minus is a standard language feature.

          • Sylvartas@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            2
            ·
            21 hours ago

            Yeah I saw that. It’s weird because I’ve used it without a second thought in tons of different languages and never had issues with it