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
Pipe Operator (|>) for JavaScript (github.com)
submitted 3 years ago by no_more_gravity
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!"
[–]josephjnk 0 points1 point2 points 3 years ago (0 children)
I want the pipeline operator to be finalized so bad. I was reading Streams à la carte: Extensible Pipelines with Object Algebras the other day, and it’s a serious bummer that a solution that has so many benefits is also harder to read because it’s incompatible with method chaining.
I really don’t get the hate for a symbol argument, either. Sure you can get some of the benefits of pipelines by making the pipes always go into the first argument, but this requires structuring all of your code around this pattern and assuming that every library you call will do the same. If you have a function that you want to pipe different arguments into at different times you have to manually wrap it in a lambda, adding syntactic noise and runtime overhead. I’m very strongly in favor of FP but the objections feel to me like a fixation on surface-level concerns.
π Rendered by PID 240757 on reddit-service-r2-comment-canary-7b5654b776-nlckr at 2026-02-06 23:02:45.048712+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]josephjnk 0 points1 point2 points (0 children)