3 ms·
> This is insane No, Typescript is very much just a static code analysis tool for JavaScript, there is no runtime at all, and there should not be one. It confu
by throw_m239339 6y ago
> This is insane
No, Typescript is very much just a static code analysis tool for JavaScript, there is no runtime at all, and there should not be one. It confuses a lot of people because they expect type guards at runtime, but it was never in the scope of the language to provide something like that.
- debaserab2 6y agoAnd, to be honest, for the vast majority that are new to type systems it's probably OK and very likely one of the reasons for TypeScripts rapid adoption. In my experience it really is the case that some typing is better than none at all.