> On Jan 24, 2018, at 12:57 AM, Ryan Culpepper <ry...@ccs.neu.edu> > wrote: > > It might make sense to `(set! new-parameterization #f)` at the end so > that the parameterization (and the values it holds) can be GC'd sooner > when splicing-parameterize is used at top level or module level.
The tricky thing about doing this is maintaining the evaluation result. If I add a (set! new-parameterization #f) to the end of splicing-parameterize, then this: (let () (splicing-parameterize ([my-param #t]) 42)) ...evaluates to #<void> instead of 42. It’s theoretically possible to figure out if the last form is a definition or an expression, and if it’s the latter, insert a use of begin0, but this means the final expression is not called in tail position. This probably isn’t a problem, though, so maybe it’s still worth it? Alexis -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.