• Gecko@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    1 year ago

    Type error unless there’s an implementation of + that specifies adding together and integer and a string.

    • jdeath@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      1 year ago

      💯% accurate. funny how the typescript developer thinks this is some kind of “gotcha!”… like maybe just try a language besides typescript and find out for yourself 😆

        • jdeath@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          my complaint is that typescript is stupid, yes. so why wouldn’t i compare to what other languages do that is less stupid?

          on the plus side, at least now i know that the ad-hominem minded devs came here too, and brought their righteousness with them.