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
-
This has been proposed but never adopted : https://github.com/tc39/proposal-pipeline-operator
comment by rafaelRiv · 2026-10-16 · in Yet another way to invoke functions in JavaScript without parentheses -
…pipeline operator would have advanced. 1: https://github.com/tc39/proposal-observable/issues/209 2: https://github.com/tc39/proposal-pipeline-operator
comment by runarberg · 2026-04-07 · in You can't cancel a JavaScript promise (except sometimes you can) -
…github.com/tc39/proposal-pattern-matching Pipeline operator is Stage 2 and won’t use the “|>” syntax: https://github.com/tc39/proposal-pipeline-operator
comment by mattvr · 2025-11-07 · in JavaScript Just Leveled Up: ES2025 – You'll Fall in Love With -
…[1] and there is a proposal to add this to JavaScript [2] 1: https://pypi.org/project/pipe/ 2: https://github.com/tc39/proposal-pipeline-operator
comment by MarkMarine · 2025-10-28 · in Simplify your code: Functional core, imperative shell -
…tools they can bring to bear! If anything, I hope this hack sparks good conversations :) [0] https://github.com/tc39/proposal-pipeline-operator/issues/91 - 6 years and 793 comments! [1] https://fsharpforfunandprofit.com/rop/
comment by btown · 2025-08-22 · in Crimes with Python's Pattern Matching (2022) -
…via an infix operator but it's still a draft. [1]: https://clojure.org/guides/threading_macros [2]: https://github.com/tc39/proposal-pipeline-operator
comment by tomku · 2025-08-21 · in Why is D3 so Verbose? -
…adopt the pipeline operator which has been in a coma in stage 2 after eternal bikeshedding at TC-39 https://github.com/tc39/proposal-pipeline-operator It would make it possible to have far more code written in the way you’d want to write it
comment by 0xfffafaCrash · 2025-08-18 · in Left to Right Programming -
Good- the [real world examples of pipes in js]( https://github.com/tc39/proposal-pipeline-operator?tab=readm... ) are deeply underwhelming IMO.
comment by fergie · 2025-08-05 · in PHP 8.5 adds pipe operator -
…and simply gave people the feature they wanted, in exactly the form it makes most sense in. [0]: https://github.com/tc39/proposal-pipeline-operator/issues/22... [1]: https://github.com/tc39/proposal-pipeline-operator/issues/23...
comment by avaq · 2025-08-05 · in PHP 8.5 adds pipe operator -
Meanwhile the JS world has been waiting for 10 years for this proposal, which is still in stage 2 https://github.com/tc39/proposal-pipeline-operator/issues/23...
comment by bapak · 2025-08-05 · in PHP 8.5 adds pipe operator -
I wish the JS pipeline operator hadn't stalled; it's been stuck in stage 2 for four years now: https://github.com/tc39/proposal-pipeline-operator
comment by mubou · 2025-05-05 · in LiveScript -
…soon, Javascript is on the way to getting a pipeline operator, the proposal is currently at Stage 2 https://github.com/tc39/proposal-pipeline-operator I'm very excited for it.
comment by Cyykratahk · 2025-04-21 · in Pipelining might be my favorite programming language feature -
…lower-priority than other syntax needs is not exclusive to Python: in the JS world, discussion in https://github.com/tc39/proposal-pipeline-operator and specifically https://github.com/tc39/proposal-pipeline-operator/wiki/Bike... has been…
comment by btown · 2024-10-09 · in PEP 760: No more bare excepts -
…than the official specification (and you obviously need to explicitly opt-into using it.) [0]: https://github.com/tc39/proposal-pipeline-operator/commit/da... (first commit; Nov 9, 2015, which is 8 years, 8 months, 24 days ago)
comment by tentacleuno · 2024-08-02 · in Russ Cox is stepping down as the Go tech lead -
Proposal from 2015 to add pipes to JS: https://github.com/tc39/proposal-pipeline-operator
comment by newtom · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
Just an FYI to folks, there has been a proposal to add pipes to JavaScript for a few years: https://github.com/tc39/proposal-pipeline-operator
comment by newtom · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
If you read all the text, it seems like the entire repo is intended to be a satire on https://github.com/tc39/proposal-pipeline-operator .
comment by gnfargbl · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
Which is basically what the proposal is https://github.com/tc39/proposal-pipeline-operator#this-prop...
comment by madeofpalk · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
…proposal to add the pipeline operator |> to the standard that works similar to what you have here. https://github.com/tc39/proposal-pipeline-operator
comment by jmisavage · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
…operations a pipe-method would make more sense. But i will wait for the native pipeline-operator < https://github.com/tc39/proposal-pipeline-operator > instead using now a function.
comment by progx · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
…adding dozens of new methods to things Note: one thing I do wish Javascript adopted is pipes: https://github.com/tc39/proposal-pipeline-operator
comment by troupo · 2023-07-03 · in JavaScript Gom Jabbar -
Both are active tc39 proposals :) https://github.com/tc39/proposal-pipeline-operator - Stage 2 https://github.com/tc39/proposal-pattern-matching - Stage 1 Hopefully we get both in the next couple of years.
comment by bern4444 · 2023-03-22 · in Mostly adequate guide to FP (in JavaScript) -
…often add promising TC39 proposals into Civet so people can experiment without waiting. We've added https://github.com/tc39/proposal-pipeline-operator , a variant of https://github.com/tc39/proposal-pattern-matching , a variant of…
comment by Yahivin · 2023-02-28 · in CoffeeScript for TypeScript -
…rest of us for the last 8 years - which i just discovered is really nicely documented in the repo: https://github.com/tc39/proposal-pipeline-operator/blob/main... there's usually a ton of nuance behind the syntax considerations and i…
comment by swyx · 2023-01-20 · in Pipe Operator (|>) For JavaScript -
…a possibility of making follow-ups proposals that could implement some F#-esque implementation [1]: https://github.com/tc39/proposal-pipeline-operator/issues/22... [2]: https://github.com/tc39/proposal-pipeline-operator/issues/91
comment by augusto-moura · 2023-01-20 · in Pipe Operator (|>) For JavaScript -
Pipes and pattern matching have been proposed to JS. https://github.com/tc39/proposal-pipeline-operator https://github.com/tc39/proposal-pattern-matching
comment by tacotacotaco · 2023-01-02 · in Functional Programming – How and Why -
There is a js proposal to add this to language: https://github.com/tc39/proposal-pipeline-operator There are few exceptions (namespaces, enums) but typescript has been quite averse to adding non-standard language level features outside…
comment by lf-non · 2022-12-26 · in All I want for Christmas is these seven TypeScript improvements -
…popular demand. But at the same time TC39 picked an archaic version of the pipeline operator (|> https://github.com/tc39/proposal-pipeline-operator ) despite a clear demand from the community to pick a functional one. Perhaps the two…
comment by runarberg · 2022-12-16 · in Help choose the syntax for CSS Nesting -
…x => x.character()) |> takeWhile(%, x => x.strength > 100) |> forEach(%, x => console.log(x)); 1: https://github.com/tc39/proposal-pipeline-operator
comment by inbx0 · 2022-11-08 · in Why would anyone need JavaScript generator functions? -
…to add it to JS. It's interesting to read it to see examples of the aforementioned differences. https://github.com/tc39/proposal-pipeline-operator
comment by throwamon · 2022-11-01 · in Ask HN: What piece of code/codebase blew your mind when you saw it? -
…Do expression: https://github.com/tc39/proposal-do-expressions Pipe operator: https://github.com/tc39/proposal-pipeline-operator
comment by gherkinnn · 2022-10-04 · in The TC39 Process -
…On a related note, I've been frustrated by the slow progress on https://github.com/tc39/proposal-pipeline-operator - specifically the thread in https://github.com/tc39/proposal-pipeline-operator/issues/91 which has 668 com
comment by btown · 2022-08-07 · in A generically typed pipe function in TypeScript -
…also a Stage 2 proposal for an operator to make the syntax generally nicer no matter the library: https://github.com/tc39/proposal-pipeline-operator > array slicing Array.prototype.slice() was added back in ES2015:…
comment by WorldMaker · 2022-07-28 · in HypeScript: Simplified TypeScript type system in TypeScript's own type system -
…are the more important part of Monads I think. > How does that relate to “pipe operator” as in https://github.com/tc39/proposal-pipeline-operator The items in the pipeline don't have a set of laws that let you know what's going on for sure…
comment by ParetoOptimal · 2022-03-06 · in Advanced Programming Languages (2009) -
…the language syntax and inserted by the compiler? How does that relate to “pipe operator” as in https://github.com/tc39/proposal-pipeline-operator Are monads also linear types? I mean, if I have a monad which represents system IO state,…
comment by skissane · 2022-03-06 · in Advanced Programming Languages (2009) -
Same thing, but for JavaScript: https://github.com/tc39/proposal-pipeline-operator Going forward, the pipe operator is going to be showing up in many new languages. I've used elixir a lot, and the pipe operator is a genius piece of…
comment by WallowingInShit · 2022-02-05 · in Rails is not written in Ruby -
Please have someone on your team take a good hard look at the current proposal-pipeline-operator: https://github.com/tc39/proposal-pipeline-operator It started as a Function Composition proposal (using the pipe operator |>) but after a…
comment by aadams · 2021-12-13 · in Deno Joins TC39 -
…more debuggable. I'd say that JS is moving closer and closer to Perl in its write-only-ness. [1]: https://github.com/tc39/proposal-pipeline-operator#temporary...
comment by ainar-g · 2021-10-19 · in A proposal for adding a pipe operator to JavaScript -
…and that there is another proposal [1] that mentions this as an extension to its functionality. 1: https://github.com/tc39/proposal-pipeline-operator
comment by foepys · 2021-10-19 · in A proposal for adding a pipe operator to JavaScript -
…as you can see if you read thought the most resent issues (particularly the closed ones). https://github.com/tc39/proposal-pipeline-operator
comment by runarberg · 2021-09-19 · in Currying in JavaScript -
…was off course meet with a lot of resentment from many JavaScript developers, including my self. https://github.com/tc39/proposal-pipeline-operator
comment by runarberg · 2021-09-19 · in Currying in JavaScript -
…style darlings such as static class blocks and true private fields seem to gain more momentum. [1] https://github.com/tc39/proposal-pipeline-operator/wiki
comment by graftak · 2021-09-19 · in Currying in JavaScript -
…piping/composing functions[2]. [1] https://en.wikipedia.org/wiki/Tacit_programming [2] https://github.com/tc39/proposal-pipeline-operator/wiki
comment by graftak · 2021-09-19 · in Currying in JavaScript -
TIL about https://github.com/tc39/proposal-pipeline-operator , which I am immediately looking forward to playing with once it gains traction Some Time From Now™ (I have no earnest reason to transpile)
comment by exikyut · 2021-09-16 · in A search engine that favors text-heavy sites and punishes modern web design -
There's also a Stage 2 proposal for adding a pipe operator to JS[1] [1]: https://github.com/tc39/proposal-pipeline-operator
comment by chaorace · 2021-09-14 · in Functional programming is not popular because it is weird (2016) -
…[0] https://elm-lang.org/docs/syntax#operators [1] https://hackage.haskell.org/package/flow [2] https://github.com/tc39/proposal-pipeline-operator
comment by 1-more · 2021-09-13 · in Functional programming is not popular because it is weird (2016) -
…committee went behind the community to make an executive decision based on their own believes. 1: https://github.com/tc39/proposal-pipeline-operator/issues/16...
comment by runarberg · 2021-09-10 · in JavaScript pipeline operator reaches stage 2 -
…a simple "left operand becomes first argument in call to right operand" is all I'd really want. [1] https://github.com/tc39/proposal-pipeline-operator [2] https://github.com/tc39/notes/blob/master/meetings/2018-03/m...
comment by wwwigham · 2020-02-04 · in F# Pipeline Operator in JavaScript with Babel -
…agree, there should be a pipeline operator |> like F# has. A similar proposal has been made for JS. https://github.com/tc39/proposal-pipeline-operator > Too many other weirdo bits of magic syntax, like [list comprehensions]. List…
comment by j88439h84 · 2019-10-12 · in Python is not a great programming language