2 ms·
> Because Tcl (unlike Java or C or Forth or Lisp) is context-sensitive -- the only way to know if a Tcl program uses its syntax correctly is to run it! I menti
by skissane 5y ago
> Because Tcl (unlike Java or C or Forth or Lisp) is context-sensitive -- the only way to know if a Tcl program uses its syntax correctly is to run it!
I mentioned in my other comment how Lisp and Java are much closer to Tcl than you think they are. But that's true of Forth as well. Forth IMMEDIATE words are equal in power to Common Lisp reader macros, they also allow you to define arbitrary custom syntax – you can even define some custom syntax and then immediately start using it. Just like Common Lisp, it is impossible to know whether a Forth program uses its syntax correctly without running it through a complete Forth runtime environment.