in reply to Pretending to be lisp: macros
This isn't really the same as Lisp macros. You're doing stuff at runtime. Lisp macros do stuff at compile time. You're using existing syntax to generate a function. Lisp macros make new syntax.
Not that what you're doing is not interesting in its own right. Although (as others have pointed out) there are many other ways of doing similar things, and using the {} style of eval would be more efficient.
You might find the discussion on Macros, LFSPs and LFMs of interest.
|
|---|