It feels like there was a short period of time after ES6 that much more proposals were made and things progressed faster. I remember in that period of time it felt like match and pipes are just around the corner as well as bigger changes like decorators (and I bet this is why so many libraries rely on decorators right now even though they are still stuck in the review process).
I would love to see the match proposal coming through (especially now that it was added to all the major PLs) also I think a proposal like Type Annotations as comments can really improve the lives of engineers right now. Still, kudos to everyone involved with it.
All I really want is for JavaScript to become properly expression oriented. Which I think would mean:
- Match expressions
- If-else expressions
- Do expression (expression blocks that begin the block with the "do" keyword to disambiguate them from object literals)
You can almost always write JavaScript in a functional style with mostly immutable variables. But occasionally you need to use a mutable variable just because it can take one of 3 or more possible values and JS doesn't support doing that in an expression-oriented way without using closures, and it's infuriating.
Pattern matching: https://github.com/tc39/proposal-pattern-matching
Do expression: https://github.com/tc39/proposal-do-expressions
Pipe operator: https://github.com/tc39/proposal-pipeline-operator