News for hackers. Stuff that matters.
Re:A Programmable Programming Language by antirez on Sunday February 25, 2018 @06:51AM (#16458475)
Tcl can do wonders in this area. uplevel is in some way more powerful than Lisp macros, since it happens at runtime.
Re:A Programmable Programming Language by kazinator on Sunday February 25, 2018 @02:26PM (#16460668)
Uplevel and its ilk is related to the Lisp FEXPR and NLAMBDA mechanisms. Mainstream Lisp discarded these things decades ago; they didn't surive into ANSI standardization.
Re:A Programmable Programming Language by ken on Sunday February 25, 2018 @10:45AM (#16459434)
Isn't "uplevel" essentially Tcl's way to choose dynamic scope? Lisp has ways to do that, too.
Re:A Programmable Programming Language by antirez on Sunday February 25, 2018 @01:53PM (#16460465)
It's more like "eval" in the stack frame you select. This added to the fact Tcl, like Lisp, has the same form for all the commands, allow to do anything you could conceive and it will look like if it's part of the language. For instance you can do a looping construct that works in a different way depending on the calling function name or state or any other crazy stuff like that.