3 ms·
Pipes are also related to the IO monad, similar in a way with the jQuery syntax which is another hugely popular case. I am utterly amazed how they invented such
by visarga 12y ago
Pipes are also related to the IO monad, similar in a way with the jQuery syntax which is another hugely popular case. I am utterly amazed how they invented such a powerful concept of functional programming for the shell (well, not 100% pure functional, if there are side effects)
- ky3 12y agoutterly amazed how they invented such a powerful concept of functional programming for the shell You might be interested in the classic McIlroy-Knuth dialogue: http://www.leancrew.com/all-this/2011/12/more-shell-less-egg/ http://www.leancrew.com/all-this/2011/12/more-shell-less-egg... The Unix "Software Tools" philosophy -- small kits composable into something big -- is deeply shared by functional programming. I don't think one begot the other. It was just obviously the natural thing to do during that era.
- vram22 12y ago>You might be interested in the classic McIlroy-Knuth dialogue: Yes, that was a good article. The comments on the post were interesting too. Saw it a while ago, and for fun, wrote two quick solutions for the problem, in Python and shell: http://jugad2.blogspot.in/2012/07/the-bentley-knuth-problem-and-solutions.html http://jugad2.blogspot.in/2012/07/the-bentley-knuth-problem-... A reader, Veky, wrote an interesting comment on my post too.