Settings

Theme

Ask HN: Why don't we introduce static types in EcmaScript?

2 points by dhandalanawaz 7 years ago · 2 comments · 1 min read


It'll make very little sense to use TypeScript / other projects like Flow if this was the case and this would make JavaScript a LOT faster.

vtesucks 7 years ago

An alternate way of asking the same question- why don't we have typescript runtime in browser.

The answer is political. Microsoft can't create it in edge because they would be blamed for trying to fragment the web. Everybody else has no reason to.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection