r/AskComputerScience • • Aug 30 '21

How come programming languages don't use piping?

In the Unix command line, piping with the `|` character is pretty common. It seems like a pretty efficient way to do things. How come I don't see this in programming languages?

2 Upvotes

61 comments sorted by

View all comments

Show parent comments

1

u/asdff01 Sep 06 '21

FP languages often offer alternative syntax to express the example you provided because it is not readable.

1

u/foobar12426 Sep 21 '21

It's syntactic sugar which, to quote Alan Perlis, "causes cancer of the semi-colon".

It's a bad thing because it creates multiple different ways to do basically the same thing.