• Feyd@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    27 days 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
      6
      ·
      27 days 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
        3
        ·
        27 days 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
          3
          ·
          27 days 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.