tc39 / proposal-pipeline-operator

A proposal for adding a useful pipe operator to JavaScript.
http://tc39.github.io/proposal-pipeline-operator/
BSD 3-Clause "New" or "Revised" License
7.53k stars 108 forks source link

Consider Elixir-style pipeline as one of the blessed alternatives #143

Closed littledan closed 3 years ago

littledan commented 5 years ago

I know we previously discussed this at length and settled on F#-style, but I keep meeting developers who have the intuition that pipeline should be Elixir-style, inserting the argument at the beginning. Would anyone be interested in writing this up formally and implementing it in Babel, so we could get hands-on experience with this alternative?

js-choi commented 3 years ago

@lightmare: For what it’s worth, @tabatkins has actually presented and discussed Elixir style with other delegates: in the 2021-06 incubator meeting. Nobody there seemed to think it was a good fit for JavaScript, though.

bjunc commented 3 years ago

@js-choi as an Elixir developer, I have been following along and have occasionally chimed in. I feel like Elixir's approach would have been an easy fit to JS. You could almost copy Elixir's syntax verbatim. C'est la vie