[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nuking `
Greetings all.
I'd like to suggest that es replace `{....} with ${...}. $ means value
of a variable, and `{} means value of running the code, so I think it's
more uniform to use ${...}.
David Korn introduced $(...) to replace `...`, largely because of quoting
issues, but I find it very mnemonic: (...) runs stuff in a subshell,
and $(..) runs stuff in a subshell and returns the result. I think the
same simplification could be applied to good end in es. Espcially since
braces tie chunks of code together.
Those who want:
; {x} = foo
; echo ${x}
foo
could instead do like rc
; echo $'{x}'
foo
(Please put aside any prejudices against bloat in ksh and just consider
the syntactic and learning-curve/readability issues for es.)
Arnold