|
|
|
|
|
by hyperpape
4156 days ago
|
|
Interesting! On first glance, this might be the most appealing attempt to improve on the shell I've seen yet. It's a really hard design space. Some questions: Why is set necessary? Once you have declaration with var, can't mutation be done without set? What's your thinking behind making var mandatory for declarations? Safety is obvious, but it seems like terseness is a really big goal for shell programming, especially interactive use. Also, documentation wise, I don't see how/if you do variable expansion in strings. Same as sh? |
|
There are no variable expansions, but strings are concatenated implicitly when they run together. In sh:
In elvish: Implicit concatenation can read a bit weird at first, but it's actually conceptually much simpler and only slightly more cumbersome than string interpolation. It also makes the syntax much simpler.