If you want X, you know where to find it (was Re: do...until wisdom needed...)

Paul Prescod paulp at ActiveState.com
Tue Apr 17 22:13:24 EDT 2001


Andrew Dalke wrote:
> 

> ...
> 
> You all are going to have to explain things to me.  My physics
> degree never told me what "procedural macros", "hygenic macros",
> etc. mean.  ...
> 
> If that's the case then I can see how they would be useful,
> because one nice thing about templates is to allow A = B + n * C
> to be implemented element-wise for matricies without producing
> intermediates.
> 
> ...I'm finding it hard to conceive of significantly
> better ways to write code than what Python has already.  (I
> don't see list comprehensions or string method as all that
> significant.)

I think you've captured the gist of it...hygenic macros are mostly
useful for very specific domains. You can imagine macros that allow
Python code to look like SQL or XPath or Prolog or ...

-- 
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook




More information about the Python-list mailing list