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

It's comments like this that make me feel better about my own decisions.

Because if that was the only benefit typescript had, it would be a win. I mean that was the whole point with JSDOC.

Anything that shortens the feedback loop from writing the code to seeing if it works is a win.

This is the equivalent of saying, "I see many people switching jobs for no reason other than to make more money". Like... That's the not the only reason but it's a big one.

Then you get into algebraic data types, and encoding logic constraints into the type system, and you can make entire classes of bugs impossible to write.

Type systems are about safety and productivity.



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: