What are AST Macros?
Nick Sabalausky
a at a.a
Mon Jul 12 16:44:22 PDT 2010
"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message
news:i1g5aq$2vkj$1 at digitalmars.com...
>
> Back on topic: http://www.apl.jhu.edu/~hall/Lisp-Notes/Macros.html.
> Compare the simple macro in the beginning and the correct macro at the
> end.
>
I can't read ordinary lisp, but Nemerle's macros seem pretty damn easy to
me:
http://nemerle.org/Macros_tutorial
And note that deconstructing the tree typically makes use of Nemerle's
excellent pattern-matching:
http://nemerle.org/Grok_Variants_and_matching#Matching
I've long been of the opinion that Nemerle's CTFE, macros and pattern
matching make D's counterparts look terrible in comparison (too bad Nemerle
doesn't do low-level).
More information about the Digitalmars-d
mailing list