3 ms·
It's not intuitive, but it was easy to implement :) There are a lot of things in Unix and Unix shell like that. I learned that parsing here docs is another on
by chubot 5y ago
It's not intuitive, but it was easy to implement :) There are a lot of things in Unix and Unix shell like that.
I learned that parsing here docs is another one of them! It's a weird syntax, and I came up with something clever for parsing it. And then I realized there is a simple algorithm that kind of "falls out" of the AST.
https://www.oilshell.org/blog/2016/10/17.html https://www.oilshell.org/blog/2016/10/17.html
The famous "worse is better" essay on Unix talks about implementation simplicity vs. interface simplicity. Unix favors implementation simplicity!