Hacker News new | ask | show | jobs
by progx 1267 days ago
"no transpiled language could ever succeed".... TypeScript.
1 comments

TypeScript doesn't introduce new runtime semantics in practice, in 99% of the cases the generated JS is your TS code with types erased. There're no magic keywords that expand into pages of generated JS.
They implemented the `x.y?.z` syntax pretty long before JS did, so that was at least transpiled for a while. I'll bet there are more features like that.
Similar story for await and iterator