Hacker News new | ask | show | jobs
by tacotacotaco 1259 days ago
Pipes and pattern matching have been proposed to JS.

https://github.com/tc39/proposal-pipeline-operator https://github.com/tc39/proposal-pattern-matching

1 comments

As much as I like these concepts, I'd be hesitant about adding them to the language. At what point does a language support too many paradigms?

In contrast, take the recently stage-3'd Iterator Helpers[0]. These build on top of the language by using methods that already exists in other parts. It feels natural and is more of the same.

0 - https://github.com/tc39/proposal-iterator-helpers#implementa...