• squaresinger@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 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
      0
      ·
      5 days 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
        0
        ·
        5 days 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
          0
          ·
          5 days 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