soure->source Xformer

Richard Carlsson <>
Tue Sep 23 15:16:39 CEST 2003


On Tue, 23 Sep 2003, Joe Armstrong wrote:

> > sys_pre_expand already *does* expand away records and list
> > comprehensions (do "c(foo, ['E'])." and look at the "foo.E" file).
>
>   Sorry - I'd forgotten aabout the records - but the expansion of list
> comprehensions is missing ...

You're right; sorry - list comprehensions are dealt with in the
'v3_core' module. (And it is messy because it is expanding and
translating at the same time. It is a much nicer approach to put every
nontrivial transformation in a separate pass, even if it means that you
traverse stuff more than once.)

	/Richard


Richard Carlsson ()   (This space intentionally left blank.)
E-mail: 	WWW: http://user.it.uu.se/~richardc/
 "Having users is like optimization: the wise course is to delay it."
   -- Paul Graham



More information about the erlang-questions mailing list