Hacker News new | ask | show | jobs
by rektide 1155 days ago
Are there other examples of ways TS confounds you?

This feels like a "haha, gotcha!" moment. Like Gary Bernhardt's Wat talk, it's one single example that looks extremely silly... but has next to no actual impact on anyone using the language regularly, is like the faintest little quirk.

Typescript seems reasonably acceptable. I struggle to think of what I would ask for, what would be significantly massively different in my life if there were a hypothetical much better alternative to Typescript.

2 comments

>> if there were a hypothetical much better alternative to Typescript. Like ReScript ?
Don't get me wrong, I am very glad that TS exists and I am using it at least weekly. But there are inconsistencies in the type system that are very surprising to beginners because TS is trying so hard to be good at edge cases.