For Kenny Tilton: Why do I need macros revisited.

Donald 'Paddy' McCarthy paddy3118 at netscape.netNOTthisBIT
Sun Aug 24 20:16:24 EDT 2003


Jacek Generowicz wrote:
> "Terry Reedy" <tjreedy at udel.edu> writes:
> 
> 
>>Until some advocate of a Python macro facility adds more detail to the
>>proposal beyound 'Lisp/Scheme-like maco facility', it is really hard
>>for someone like me, who has used neither, to have much of any
>>concrete idea of what is being proposed.
> 
> 
> Until some advocate of a Python macro facility adds more detail to the
> proposal ... it is really hard for me to have much of any concrete
> idea what is being proposed ... because Lisp-style macros rely on the
> fact that Lisp code is expressed in a fundamental Lisp data structure,
> in the form of its parse tree. This ain't the case in Python, so the
> whole macro business suddenly gets more complicated by an order of
> magnitude or two.
> 
> I just can't imagine what such a macro system would look like. Maybe
> someone with deep knowledge of Dylan can enlighten us.
You might take a look at:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=3ED52BAE.5050704%40blueyonder.co.ukNOTthisBIT&rnum=12

This was my attempt at putting down some of the things that I'd like to 
see in Python Macros/

Cheers, Pad.





More information about the Python-list mailing list