News for hackers. Stuff that matters.
Re:TypeScript’s quirks: How inconsistencies make the languag... by jahewson on Friday January 31, 2020 @10:57PM (#22208551)
That’s control-flow sensitive type deduction though - not specific to union types. I agree that proper patten matching is much nicer - but unavailable in JS.

There are no comments on this comment yet.