3 ms·
...TCL doesn't have macros, it has fexprs, and uplevel. It also has no effective hygene mechanisms, and unless you want to use regex to parse the tree every tim
by qwertyuiop924 10y ago
...TCL doesn't have macros, it has fexprs, and uplevel. It also has no effective hygene mechanisms, and unless you want to use regex to parse the tree every time your function fires, you can't do the kinds of code transforms macros can.
Don't get me wrong, TCL is super cool, but it doesn't have quite the same powers as lisp. Although you are correct, it's a better lisp than ruby.
- mroll 10y agoDo you know about the sugar package? Sugar implements real lisp macros. http://wiki.tcl.tk/11155 http://wiki.tcl.tk/11155
- qwertyuiop924 10y agoHuh. Meh, the lack of Macros aren't a problem. The problem is lack of arbitrary code transformation, which isn't as fixable.
- mroll 10y agoThere is arbitrary code transformation in tcl through subst or string map
- qwertyuiop924 10y agoYeah, because regex is so great at parsing code. It's not like that'll break in unexpected ways. And we all just love writing parsers in our macros. Oh, wait.