Hacker GitHub

← All repos

tc39/proposal-pipeline-operator

View on GitHub ↗ ★ 7,918 HTML

A proposal for adding a useful pipe operator to JavaScript.

84 mentions on Hacker News by 69 people: 19 stories, 65 comments · first 2015-12-06 · latest 2026-10-16

Mentions per year 84 mentions · busiest year 2021 (16)
20082026
  1. …how many features are being added via the ecmascript proposal process/babel transpiration (eg: https://github.com/tc39/proposal-pipeline-operator )
  2. I guess it's because of potential ambiguity, it's discussed here: https://github.com/tc39/proposal-pipeline-operator/issues/14...
    comment by kristiandupont · 2019-07-07 · in Babel 7.5
  3. …it doesn't really try to stick to a specific paradigm. There is even a proposal to add pipielines: https://github.com/tc39/proposal-pipeline-operator . Personally, I think forcing yourself to a specific paradigm is a waste of energy. I've…
  4. …similar chaining patterns on subjects that are not arrays, as shown in the proposal’s README: https://github.com/tc39/proposal-pipeline-operator/blob/mast...
    comment by mbostock · 2018-11-08 · in The JavaScript Pipeline Operator
  5. What's wrong with a pipeline operator? JS is getting one as well. https://github.com/tc39/proposal-pipeline-operator Chaining calls in JS means that a function returns the original object, piping is actually passing over the result as an…
  6. …=> x % 2 === 0) |> Array.map((x) => x * 2) |> Array.reduce((acc, x) => acc + x) [0]: https://github.com/tc39/proposal-pipeline-operator
  7. …Operator Stage 1 proposal is currently the closest proposal to making something like that happen: https://github.com/tc39/proposal-pipeline-operator [1] Stage 1 Proposal: https://github.com/gsathya/proposal-slice-notation/
    comment by WorldMaker · 2018-05-16 · in JavaScript is Good, Actually
  8. …). It would also be nice to have an operator like the proposed "pipeline" operator, à la F# ( https://github.com/tc39/proposal-pipeline-operator ).
  9. …square) Compared to the operator: 2 |> $ => Math.pow(5, $) |> square So no disadvantage at all. [0] https://github.com/tc39/proposal-pipeline-operator#user-cont...
    comment by djedr · 2018-01-20 · in JS things I didn’t know existed
  10. …really impressive. Checkout the pipeline operator: https://github.com/babel/proposals/issues/29 ( https://github.com/tc39/proposal-pipeline-operator ) That's some cutting-edge stuff. I wouldn't want to use it until it was official, but…
    comment by git-pull · 2017-12-28 · in Nearing the Babel 7.0 Release
  11. …There's actually a proposal for a pipeline operator in JS that I personally really like: https://github.com/tc39/proposal-pipeline-operator I have no idea if it's getting enough traction to get standardized anytime soon though. In lieu of…
    comment by lewisl9029 · 2017-11-02 · in Closh – Bash-like shell based on Clojure
  12. ….value(); It's no less readable than the code you'd write using using unfolded transformations. 1. https://github.com/tc39/proposal-pipeline-operator
    comment by splintercell · 2017-09-21 · in Folding Promises in JavaScript
  13. …(chaining of regular functions) would be so much better to program with. We don't need both. https://github.com/mindeavor/es-pipeline-operator
    comment by boubiyeah · 2016-12-04 · in ECMAScript bind operator proposal
  14. …more interesting solution for this instead of adding syntax that relies on the `this` keyword? [1] https://github.com/mindeavor/es-pipeline-operator
    comment by sebdd · 2016-12-03 · in ECMAScript bind operator proposal
  15. …100; }) |> custom The linked page has a nice example and explanation about this concerning promises https://github.com/mindeavor/es-pipeline-operator#sample-usa...
    comment by abrezas · 2015-12-06 · in ES7 Proposal: The Pipeline Operator