I keep seeing posts of some drama with typescript. What happened?

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    16
    ·
    10 months ago

    Honestly, it’s a shame that Typescript is used as “a way to make Javascript tolerable”. Its type system is actually very cool and allows for some very interesting expressions and guarantees that are difficult to achieve in most other languages

    We should just let the browser execute TypeScript so we can rid ourselves of the JS mess. That would also be the perfect time to do some cleanup of old, abandoned JS features.

    • ShittyKopper [they/them]@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      10 months ago

      Honestly I’m surprised Microsoft isn’t pushing for that already. They already have a decently popular browser (Edge), they own TS, and they have a history with not giving a shit about standards (IE and ActiveX).

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        arrow-up
        3
        ·
        10 months ago

        Their browser and the V8 JavaScript engine is pretty much Chrome with some bits and pieces. I don’t think they’re ready to add a whole new scripting language just yet.

        I think the web peeps are working on adding TypeScript-style typing to Javascript, but only as annotations, so the types wouldn’t actually be checked.