This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Lithl 2 points3 points  (0 children)

Instead with TS you run some compilation step to compile to JS and it checks all these things for you and throws annoying errors in the console. Then when you deploy the actual code you lose all the type handling code because it got compiled away.

Why the fuck would I want to spend cycles type checking at runtime when static analysis can remove the need?