pythonmacroslispscheme

Python Macros: Use Cases?


If Python had a macro facility similar to Lisp/Scheme (something like MetaPython), how would you use it?

If you are a Lisp/Scheme programmer, what sorts of things do you use macros for (other than things that have a clear syntactic parallel in Python such as a while loop)?


Solution

  • Some examples of lisp macros: