News for hackers. Stuff that matters.
Re:TypeScript 4.1 by throw_m239339 on Thursday November 19, 2020 @08:58PM (#25156619)
> 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.

Re:TypeScript 4.1 by debaserab2 on Thursday November 19, 2020 @09:23PM (#25156756)
And, 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.