[plt-scheme] transformers after expansion no longer needed

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Jul 16 07:24:55 EDT 2008

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

  (define foo
    (let ()
      (define-syntax ...)

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.