Y
Hacker News
new
|
ask
|
show
|
jobs
by
jahewson
2334 days ago
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.