3 ms·
> You can write a TCL list to a file? You mean a TCL string to a file? Lisp can just write strings to files too. No, the point is that almost all TCL values ar
by lmm 9y ago
> You can write a TCL list to a file? You mean a TCL string to a file? Lisp can just write strings to files too.
No, the point is that almost all TCL values are represented as strings which are also valid literals for those values. This is where the similarity with Lisp comes from: Lisp is a language where the syntax is the representation (you write the AST), whereas TCL is a language where the representation is the syntax (you operate on the string).
- nerpderp83 9y agoSo all func calls are actually calls to eval?
- lmm 9y agoAgain TCL kind of has the opposite perspective: all evaluation is text substitution.
- convolvatron 9y agoyes, although there are compilers which statically deconstruct as much as they can
- rurban 9y agoapply actually, which is the eval form for functions. Calls a function with a list of arguments