4 ms·
but then is not a pipe!
by CodexArcana 4y ago
but then is not a pipe!
- layer8 4y agoIt’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.
- layer8 4y agoPS: 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.
- vorotato 4y agohack pipes aren't "pipes" anyway. Every other language that uses |> uses it for functions, not expressions.
- kehrin 4y agoTo be honest |> looks more like a tipped over traffic cone to be begin with.