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

I find the costs of static typing very low. What costs do you have in mind?


Everything required to add that to regular Javascript: transpilation, extra markup and understanding and mastering a new tool. Another layer to manage and debug if you will.


Assuming you use ES6+ in production, so you need a build step anyways, would you still say TS adds costs that aren't worth it to you? And if so, which costs? I mean that in full honesty, as I generally find myself conflicted whenever I start a new project: TS or ES2015+?


Now browsers support most of ES6, so you only need build step for deployments, and can have fast reloads without a build step when developing.


Oh. But these days most JS projects are in some task runner anyway.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: