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

Stuff like "===" and "use strict; for non-baffling behavior." Lots more of these kind of things I don't want to think about.

I want fewer broken things to avoid. A subset, not a superset.



For sure. Typescript definitely gets you away from the worst of these, the typing mitigates most of the craziness about the two exact issues that you mention. But nonetheless, when the rubber hits the road, it's still JavaScript that is running, so weirdness is definitely still a thing


TS does take into account things like === and you can get warnings for using them wrongly. But I'm not certain... I just don't find myself thinking about === and use strict.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: