Metaprogramming

David Hopwood <>
Thu Aug 24 00:58:32 CEST 2006


Vlad Dumitrescu wrote:
> Hi,
> 
> What I have in store (or more precisely, in a truck on the way to the
> store :-) is to add functionality similar to Lisp's backquote (or more
> precisely to E's quasipatterns, because one can use any language for
> which one has a scanner and a parser).
> 
> My reason for this is to make handling of source code easier (becaue
> we do a lot of that in Erlide), but it could be used to implement
> lisp-style macros as well.
> 
> It looks pretty good so far, but it's quite tricky. Especially
> handling pattern matching, where I think it might be needed to extend
> PM syntax too...

Do you have any design notes or examples of what this might look like?
Will it be possible to write a quasipattern anywhere that a pattern
can currently occur in Erlang?

-- 
David Hopwood <>





More information about the erlang-questions mailing list