3 ms·
Totally! Bernstein chaining is concatenative. So are shell pipelines, if you squint at them just right: function composition mediated by special stacks of recor
by sigil 10y ago
Totally! Bernstein chaining is concatenative. So are shell pipelines, if you squint at them just right: function composition mediated by special stacks of records called stdin and stdout.
Reminds me, I have a pretty neat tail-recursive shell pipeline trick I need to share with HN!
- stephancoral 10y agoPlease share it!
- chubot 10y agoI'm interested in the tail recursive pipeline trick! The next post mentions that pipelines are also concatenative, although there is a slight difference and I think "point-free" is more accurate. "Pipelines Support Vectorized, Point-Free, and Imperative Style" http://www.oilshell.org/blog/2017/01/15.html http://www.oilshell.org/blog/2017/01/15.html
- sigil 10y agoNice. I'm loving this series, keep it up!
- deleted 10y ago[deleted]