4 ms·
> It's a truly awful language. If you use it like, say, perl, then yes - some of the code looks horrible. If you take a step back, really try to grok it, and
by isr 9y ago
> It's a truly awful language.
If you use it like, say, perl, then yes - some of the code looks horrible.
If you take a step back, really try to grok it, and then use it like a lisp (but for strings, rather than linked-lists), then its actually quite elegant (with sometimes messy indentation).
If you take another step back, glance sideways, look at every other unix shell, then look again at tcl's "undefined cmd" behaviour, the exec cmd, its inherent lispiness (see above) ...
... then you smack yourself on the head when you realise this is yet another defeat grasped from the jaws of victory.
Tcl should have replaced bash et al.
Especially so for jimtcl (a lightweight reimplementation of tcl, started by the redis author).