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. This has been proposed but never adopted : https://github.com/tc39/proposal-pipeline-operator
  2. …pipeline operator would have advanced. 1: https://github.com/tc39/proposal-observable/issues/209 2: https://github.com/tc39/proposal-pipeline-operator
  3. …github.com/tc39/proposal-pattern-matching Pipeline operator is Stage 2 and won’t use the “|>” syntax: https://github.com/tc39/proposal-pipeline-operator
  4. …[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
  5. …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/
  6. …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?
  7. …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
  8. 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
  9. …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
  10. 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
  11. 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
  12. …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.
  13. It made it to Stage 2, which is some traction: https://github.com/tc39/proposal-pipeline-operator It has been "stuck" at Stage 2 for a while, though.
    comment by WorldMaker · 2025-04-01 · in Why F#?
  14. …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
  15. …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
  16. Proposal from 2015 to add pipes to JS: https://github.com/tc39/proposal-pipeline-operator
  17. 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
  18. 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 .
  19. Which is basically what the proposal is https://github.com/tc39/proposal-pipeline-operator#this-prop...
  20. …proposal to add the pipeline operator |> to the standard that works similar to what you have here. https://github.com/tc39/proposal-pipeline-operator
  21. …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.
  22. …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
  23. 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.
  24. …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
  25. …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
  26. …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
  27. 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
  28. 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…
  29. …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
  30. …x => x.character()) |> takeWhile(%, x => x.strength > 100) |> forEach(%, x => console.log(x)); 1: https://github.com/tc39/proposal-pipeline-operator
  31. …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
  32. …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
  33. …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
  34. …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:…
  35. …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)
  36. …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)
  37. 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
  38. 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
  39. …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...
  40. …and that there is another proposal [1] that mentions this as an extension to its functionality. 1: https://github.com/tc39/proposal-pipeline-operator
  41. …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
  42. …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
  43. …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
  44. …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
  45. 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)
  46. There's also a Stage 2 proposal for adding a pipe operator to JS[1] [1]: https://github.com/tc39/proposal-pipeline-operator
  47. …[0] https://elm-lang.org/docs/syntax#operators [1] https://hackage.haskell.org/package/flow [2] https://github.com/tc39/proposal-pipeline-operator
  48. …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
  49. …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...
  50. …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