• zagaberoo@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    3 days ago

    The risk is when it happens unintentionally. The language is bad for hiding such errors by being overly ‘helpful’ in assuming intent.

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

          Not really, considering Typescript only adds static types to JS. It’s not a different language, it’s an extension.

          • Quibblekrust@thelemmy.club
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            Since it needs to be compiled to JavaScript in order to be used, I kind of consider it a different language. Yes, it’s a strict superset of JavaScript, but that makes it different.

        • matlag@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          That’s also my understanding: “Javascript is great because you can use other languages and then transpile them to JS.”