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
20082026
-
…how many features are being added via the ecmascript proposal process/babel transpiration (eg: https://github.com/tc39/proposal-pipeline-operator )
comment by Octoth0rpe · 2019-09-15 · in Z – A dynamic functional programming language that compiles to JavaScript -
…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…
comment by snek · 2019-05-04 · in Functional Programming Is on the Rise -
…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 -
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…
comment by dsego · 2018-07-20 · in Why We’re Building Flux, a New Data Scripting and Query Language -
…=> x % 2 === 0) |> Array.map((x) => x * 2) |> Array.reduce((acc, x) => acc + x) [0]: https://github.com/tc39/proposal-pipeline-operator
comment by pg_bot · 2018-05-24 · in ECMA TC39: “SmooshGate” was officially resolved by renaming flatten to flat -
…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 -
…). It would also be nice to have an operator like the proposed "pipeline" operator, à la F# ( https://github.com/tc39/proposal-pipeline-operator ).
comment by crabl · 2018-03-20 · in Fluent Interfaces Are Bad for Maintainability -
…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 -
…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 -
…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 -
….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 -
…(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 -
…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 -
…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