[Cython] Lisp inspired transforms
Stefan Behnel
stefan_ml at behnel.de
Mon Apr 7 20:58:07 CEST 2008
Hi,
Martin C. Martin wrote:
> I've been doing some thinking and prototyping of a transform system
> inspired by Common Lisp macros. You can see the results as the newest CEP:
>
> http://wiki.cython.org/enhancements/metaprogramming
>
> Briefly, it allows you to define a transform in the Cython source code.
> The transform runs at compile time, and takes the *parse trees* of its
> arguments.
I like the way this reads, yes.
I'd like to see the "deftrans" functions in a separate source file, maybe a
".pxt"? I wouldn't want to see them mixed with normal Cython code.
Stefan
More information about the Cython-dev
mailing list