4 ms·
The big missing FP features in ECMAScript are pattern matching and pipe operator. I know there are proposals but neither seems to be making much progress. I l
by Osiris 4y ago
The big missing FP features in ECMAScript are pattern matching and pipe operator.
I know there are proposals but neither seems to be making much progress.
I like FP but shoehorning it in with libraries is ugly compared to having native syntax.
- nicoburns 4y agoExpression-orientation would be my #1 request (for both code blocks and switch statements). If that came with pattern matching then even better. A pipe operator would be a nice to have but isn't crucial IMO.
- bern4444 4y agoBoth are active tc39 proposals :) https://github.com/tc39/proposal-pipeline-operator https://github.com/tc39/proposal-pipeline-operator - Stage 2 https://github.com/tc39/proposal-pattern-matching https://github.com/tc39/proposal-pattern-matching - Stage 1 Hopefully we get both in the next couple of years.
- Osiris 4y agoI’ve been watching them for years! I’m getting impatient.