[plt-dev] identifier-prune-lexical-context

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun May 17 11:33:25 EDT 2009

At Sun, 17 May 2009 09:28:42 -0400, Eli Barzilay wrote:
> On May 17, Matthew Flatt wrote:
> > 
> > Use `quote-syntax/prune' or `identifier-prune-lexical-context' to
> > potentially reduce bytecode size when an identifier's context won't
> > be transferred to other syntax objects --- or perhaps only to
> > '#%top, which `quote-syntax/prune' excludes from pruning in addition
> > to the identifier's symbol. Pruning probably is not worthwhile on a
> > macro template, but it can be useful in the expansion of forms like
> > `define-struct' and `package' that keep lists of identifiers.
> 
> Is there some example to demonstrate such a use?

Only `package' ("scheme/package.ss") and `define-struct'
("scheme/private/define-struct.ss"), so far.



Posted on the dev mailing list.