3 ms·
Interesting. I've never worked with Tcl, is it possible to write Common Lisp loop macro in Tcl?
by NigelTufnel 13y ago
Interesting. I've never worked with Tcl, is it possible to write Common Lisp loop macro in Tcl?
- takeda 13y agoI'm not familiar with lisp loop macros, but here is how this works. For example the Tcl does not have try-catch-finally statement. If that happens in other languages you just need to accept it. In Tcl you can implement it yourself for example: http://code.activestate.com/recipes/68396-try-catch-finally/ http://code.activestate.com/recipes/68396-try-catch-finally/
- __pThrow 13y agoI like tcl, but in my experience it's no lisp. You can do macro like things in tcl, but very often the evals and uplevels all worked to make my brain hurt in ways that writing cl macros never has.
- dfox 13y agoIt's not possible to write CL's loop macro per-se (tcl does not have macros, but commands/functions which are executed each time and there isn't an distinct macroexpansion/compilation phase), but it's certainly possible to write something that essentially matches behavior and user interface of loop (and it's probably significantly easier to do than writing loop in CL).