• Mobocratic Egoist@lemmy.161.social
    link
    fedilink
    arrow-up
    8
    ·
    4 years ago

    I think most are fair points, except I disagree that static types are not helpful. Static typing is preferable over dynamic typing but is difficult to do well. PHP and Python have type annotations now, and I think it would be good if JS introduced them as well. That would be a better solution than TypeScript.

    • shilangyu (lemmur)@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      4 years ago

      It would seem to me that introducing typing to JS like in Python or PHP would just end being TypeScript, so why would it be a better solution? Do you mean it being a first class citizen in the JS world?

      • Mobocratic Egoist@lemmy.161.social
        link
        fedilink
        arrow-up
        4
        ·
        4 years ago

        Yes, I mean making it a first class citizen of standard JS. That would be a step towards all JS libraries coming with type annotations without having to convert everything to TypeScript.