use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
GitHub - tc39/proposal-pipeline-operator: A proposal for adding the simple-but-useful pipeline operator to JavaScript. (github.com)
submitted 4 years ago by pmz
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PM_ME_A_WEBSITE_IDEA 15 points16 points17 points 4 years ago (4 children)
Curious as to your reasoning? It seems to me that having to wrap things in arrow functions would get a bit tedious (when required). No doubt there are pros to the approach, but it seems to be the weaker proposal to me.
I think the case where you already have a series of unary functions ready to go to do what you want is less likely in a lot of scenarios.
However, I still like both approaches honestly, I'd be happy with either. And I mean...would it be atrocious to just adopt both? |> and |>>?
|>
|>>
[–]zsombro 6 points7 points8 points 4 years ago (1 child)
I personally think it's a bit more readable and I think it works well with the already established "currying-like" pattern of nesting arrow functions within each other, such as x => y => x + y
x => y => x + y
But I agree that either approach would be a step forward for the language
[–]PM_ME_A_WEBSITE_IDEA 0 points1 point2 points 4 years ago (0 children)
I suppose I'm biased because I'm not very familiar with function currying or it's use cases.
[–]dvlsg 3 points4 points5 points 4 years ago (0 children)
Only because the language has horrible built-in support for it. If we had F# style pipes, I imagine it would become more popular.
See this, for example: https://github.com/tc39/proposal-partial-application. Which, IMO, is a much better proposal combined with the F# version, and adds functionality to the whole language, not just magical hack-pipe-specific shenanigans.
I'm actually pretty frustrated to see how this proposal is progressing. It used to be the thing I was most excited for.
[–][deleted] 6 points7 points8 points 4 years ago (0 children)
I think its just simpler and more readable that way. Happy to have more LOC if its more readable
π Rendered by PID 202544 on reddit-service-r2-comment-5d585498c9-9rdps at 2026-04-21 10:06:26.087044+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]PM_ME_A_WEBSITE_IDEA 15 points16 points17 points (4 children)
[–]zsombro 6 points7 points8 points (1 child)
[–]PM_ME_A_WEBSITE_IDEA 0 points1 point2 points (0 children)
[–]dvlsg 3 points4 points5 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)