Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: