• Feyd@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    3 hours ago

    TypeScript, for those who aren’t familiar, is a Microsoft rewrite of JavaScript that’s incompatible with basic JavaScript in multiple ways

    Wut

    • kibiz0r@midwest.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      Yeah, that’s uhh… that’s technically true for very strange and specific definitions of “compatibility”… but it wildly misses the point of TypeScript. Not sure what he was thinking there.

      • Feyd@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 hours ago

        Yeah node’s --experimental-strip-types exposes the absurdity immediately. The only incompatibility is that it has type annotations.

        • kibiz0r@midwest.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 hours ago

          Also, like… the fact that it has a compiler. It’s like saying C is incompatible with assembly because you can’t yeet a .c file at an assembler.

    • Azzu@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 hours ago

      I mean once you write your app in typescript, you can’t “go back” to pure JavaScript, you’ll always have to use the typescript compiler to generate JavaScript (of course you can rewrite it later again, but will take potentially lots of effort). I’m pretty sure that’s what they meant with “incompatible”. You are now locked into M$ ecosystem.