3 ms·
Tcl does have a lispy feel to it, but s-expressions in Lisp are much more elegant than strings in Tcl, imho. Greenspun called Tcl the Lisp without a brain[1], w
by pg314 10y ago
Tcl does have a lispy feel to it, but s-expressions in Lisp are much more elegant than strings in Tcl, imho. Greenspun called Tcl the Lisp without a brain[1], which can be taken both as a compliment or an insult.
[1] http://philip.greenspun.com/tcl/introduction.adp http://philip.greenspun.com/tcl/introduction.adp
- jjnoakes 10y agoTcl commands are lists, not strings. Or more precisely, they are coercible to strings or lists, but a well-formed Tcl command string is always coercible to a well-formed Tcl list (not all Tcl strings are coercible to lists).
- pg314 10y agoThanks for the correction. It's been a while since I used Tcl and my memory of it was incorrect.
- kevin_thibedeau 10y agoIt used to be strings all the way down before the object system was implemented in 8.0. That incidentally is part of the reason why the expr command was created to process infix expressions since it would be too costly to keep converting sub-expressions back and forth from strings to numbers. http://www.tcl.tk/software/tcltk/8.0.html http://www.tcl.tk/software/tcltk/8.0.html