Comment

Comment by Tadpole9181

It is quite literally a separate language. Python's type hints are a part of the Python specification and all valid Python type hints will run in any compliant Python runtime. Typescript is not, in any way, valid JavaScript. The moment you add any type syntax, you can no longer run the code in Node or Browsers without enabling a special preprocess step.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton