Open pvorona opened 6 years ago
It's a very good idea @pvorona , I don't have any point to disagree. It makes the object match even simpler! It'll be like the proposal-pattern-matching Object Patterns.
That task is not very hard, just need to check how js-function-reflector returns the data. I'm just not sure how good it works with ...
rest parameters.
Currently I'm investigating the ability of implementing the following:
Compare to previous version:
So the unneeded parameter
x
is removed. I can't find any closed issue addressed this idea. What's your thoughts on this thing?