• Mobocratic Egoist
    link
    fedilink
    73 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)
      link
      6
      edit-2
      3 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
        link
        fedilink
        43 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.