Python Macros

Arich Chanachai macrocosm at fastmail.fm
Tue Oct 5 01:56:04 CEST 2004


Carlos Ribeiro wrote:

>On Mon, 04 Oct 2004 11:26:19 -0400, Arich Chanachai
><macrocosm at fastmail.fm> wrote:
>  
>
>>How hard/easy is it to extend the Python syntax?  Perhaps there are
>>macro facilities for this?  I'd like to add messages and message
>>passing, for example.
>>    
>>
>
>Python doesn't support macros. This same question was raised before in
>slightly different ways, and the historical answer seems to be that
>macros are not in the plans, and that there are better ways to solve
>problems than with macros. In fact, Python is *very* flexible, and
>allows the clear expression of several interesting ideas and paradigms
>without the need for macros. Could you share more information about
>why do you think macros are the best solution for your problem?
>
>
>  
>
I could implement them myself by writing a module that would serve as a 
layer to permit usage of this sort of language construct.  The issue is 
that I want to be able to use this functionality transparently (without 
knowing anything about or making any references to this module).



More information about the Python-list mailing list