News for hackers. Stuff that matters.
Re:Pipe Operator (|>) For JavaScript by pcthrowaway on Friday January 20, 2023 @03:53PM (#34459786)
> I do have to admit I never worked with a language that uses |>

Have you never worked with Bash? It's basically the same thing

Re:Pipe Operator (|>) For JavaScript by arp242 on Friday January 20, 2023 @04:02PM (#34459901)
Indeed it is, but it's kind of a different context than a "real" programming language. What works for one doesn't necessarily work well for the other.
Re:Pipe Operator (|>) For JavaScript by yamtaddle on Friday January 20, 2023 @06:51PM (#34461940)
Truly, one of the main reasons I might stop increasing the complexity of a bash one-liner and move it to a full shell script, or bail for Python, is specifically so I can turn those chains of pipes into imperative steps with temp vars so that they're actually legible and easy to reason about. I can't imagine why I'd want to go the other direction.