Hacker News new | ask | show | jobs
by kabes 1204 days ago
Can only speak for java. But I'm way more productive with typescript. Typescript has 2 things going for it:

- type system is way more flexible. You can create, merge, pick keys and manipulate types in all kinds of ways. You have better type inference, type conditionals and lots more

-there's an escape hatch. Sometimes you just want to quickly try something, or you're under time pressure and need to either break the types or do a bigger rewrite, or you just don't care about a certain variable's type. Then there's the any/unknown/plain js/@ts-expect-error escape hatches to do just that.