5 ms·
I'm not sure why the author would say that metaprogramming is "absent" from Python. Do decorators and metaclasses not count as metaprogramming features? I'm s
by daviddaviddavid 15y ago
I'm not sure why the author would say that metaprogramming is "absent" from Python.
Do decorators and metaclasses not count as metaprogramming features? I'm sure that languages in the Lisp family might be better suited for metaprogramming than Python but the author's claim seems straightforwardly false.
- DanWaterworth 15y ago> "Do decorators and metaclasses not count as metaprogramming features?" Not when compared to macros in lisp dialects. The closest python comes is: http://docs.python.org/library/ast.html http://docs.python.org/library/ast.html but lisp with it's simple structure is much less unwieldy.