3 ms·
> Python with types is still just python. Typescript is a different language from JS (guess it a superset?) No, it's the exact same thing. TypeScript adds supp
by motorest 1y ago
> Python with types is still just python. Typescript is a different language from JS (guess it a superset?)
No, it's the exact same thing. TypeScript adds support for type annotations, and removing these annotations leads to JavaScript. See how Node.js added support for TypeScript by implementing type stripping in v22.
https://nodejs.org/api/typescript.html#type-stripping https://nodejs.org/api/typescript.html#type-stripping