2 ms·
Why should javascript, as a language, care about Typescript? I know it's popular, but it isn't javascript, it's a completely separate language which just happen
by krapp 4y ago
Why should javascript, as a language, care about Typescript? I know it's popular, but it isn't javascript, it's a completely separate language which just happens to compile to javascript.
Why should javascript add syntax just to make users of another language more comfortable?
>Today, I often find TypeScript samples that I copy into JS projects and then have to painfully remove the TypeScript bits to get it to run. This fixes that.
The purpose of typescript is to be compiled into javascript, it isn't meant to be run in a browser. If you're going to use it, use it properly, otherwise, "picking out the typescript bits" makes about as much sense as "picking out the C#" parts of some .NET code to run it in a C compiler.