3 ms·
I would argue that it doesn't feel like JavaScript much which seems bad.
by c0nfused 8y ago
I would argue that it doesn't feel like JavaScript much which seems bad.
- irrational 8y agoI'd argue they've already started going down the "doesn't feel much like JavaScript" road when they started introducing things like fat arrows. I agree that it is bad.
- goatlover 8y agoAlong with the class syntax (however convenient, JS is not a class-based language). Aren't decorators also in the works?
- kristiandupont 8y agoWhy? To me it seems pretty aligned with the "feel" of destructuring.
- c0nfused 8y agoIn 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.