[plt-scheme] transformers after expansion no longer needed
On Jul 16, Jos Koot wrote:
> Thanks. But what when I import syntaxes from another module?
Then you must have the transformers present. I think that what you're
talking about is some kind of tree shaker that removes unused
bindings. (And that's not implemented.)
> ----- Original Message -----
> From: "Eli Barzilay" <eli at barzilay.org>
> To: "Jos Koot" <jos.koot at telefonica.net>
> Cc: <plt-scheme at list.cs.brown.edu>
> Sent: Wednesday, July 16, 2008 1:24 PM
> Subject: Re: [plt-scheme] transformers after expansion no longer needed
>
> > On Jul 16, Jos Koot wrote:
> >> When running a module in DrScheme, the transformers used during
> >> expansion cannot be discarded, because they may be used in the
> >> interactions window. However, in many cases I no longer need the
> >> transformers after expansion. Is there a way to make them garbage
> >> collectable as soon as expansion is completed?
> >
> > You can use `let-syntax' for that, or other forms of local macros
> > like:
> >
> > (define foo
> > (let ()
> > (define-syntax ...)
> > blah))
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!