Y
Hacker News
new
|
ask
|
show
|
jobs
by
dvdhnt
2985 days ago
So, there are example use cases in the proposal [1]. I think it's meant to standardize how we handle conditional inputs or shapes of inputs (some people use if statements, some switch, and others store it all in an object and use keys).
1.
https://github.com/tc39/proposal-pattern-matching#motivating...