Hacker News new | ask | show | jobs
by kristiandupont 2974 days ago
Why? To me it seems pretty aligned with the "feel" of destructuring.
1 comments

In my mind there are several valid options out there now:

1. Regex style: new match(input, options);

or built in function match(foo, bar);

or like switch match (foo){ cases

}

But, to have the switch statement syntax and return a value seems like a less than good way to implement this.