[Python-Dev] A Hygienic Macro System in Python? (original) (raw)

Samuele Pedroni pedroni@inf.ethz.ch
Mon, 18 Mar 2002 22:02:01 +0100


From: Tom Emerson <tree@basistech.com>

Greetings all,

Has there been any discussion about adding a macro system to Python, such as the hygienic macros supported by Scheme (R^4RS and later) and Dylan? Dylan made a lot of use of macros, providing a very powerful environment for them. Many useful constructs can be implemented with macros.

Macros (unless you pay a huge cost, or you have a very very clever implementation in mind) destroy the illusion that there is only run time (vs. compile time etc), it would be a huge quantum leap for Python.

Funny, Guido sez more or less the same thing .

regards.