Re:A pipe operator for JavaScript: introduction and use cases
by throwamon on Saturday January 29, 2022 @11:46AM
(#30127795)
I fully agree with your sarcasm, but you probably know that that was not my point.
But seriously, I don't see what's so controversial about it. It's just "do this, then take the result and do that, then take the result and..." Everyone understands this intuitively. Plus, lots of libraries already do method chaining, which is just a crappier and inconsistent version of piping anyway.
But seriously, I don't see what's so controversial about it. It's just "do this, then take the result and do that, then take the result and..." Everyone understands this intuitively. Plus, lots of libraries already do method chaining, which is just a crappier and inconsistent version of piping anyway.