Hacker News new | past | comments | ask | show | jobs | submit login

> Why should I accept a performance penalty if I write in TypeScript, being so similar to JS? TypeScript is js with typing support

Indeed you shouldn't. TS set out to be "JS with types, that get checked then ditched". Has it morphed into something more? The above shouldn't be slow to generate. And as for code speed, not much code-gen should be happening in the first place once type info is erased from source as "TS turns into JS". I might not be fully up to speed on TS' latest developments however.




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

Search: