Hacker News new | ask | show | jobs
by johnfn 3274 days ago
> all JS 'bad code' is legit by definition (JS superset)

That's not true. There's a lot of JS code out there that is certainly not legit in TS. Probably the shortest example is `1 === "a"` which produces a TypeError, but if you use TS at all you'll understand that a lot of bad patterns are made painful or impossible thanks to the strict type system.