News for hackers. Stuff that matters.
Re:Pipe Operator (|>) For JavaScript by layer8 on Friday January 20, 2023 @01:31PM (#34457504)
It’s a horizontal pipe. It arguably actually makes more sense when the values flow horizontally from left to right through the pipe.

In an alternative universe, Unix shell syntax may have used “—“ instead of “|” for piping.

Re:Pipe Operator (|>) For JavaScript by layer8 on Friday January 20, 2023 @06:51PM (#34461930)
PS: The commands in Unix pipes are executed in parallel, and “|” could be interpreted as a mnemonic of that fact. However, the same is not true for the programming-language feature discussed here, which only processes singular values, not streams.