[racket] splicing into local

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Sat Sep 3 15:38:19 EDT 2011

I have a define form that expands into two two definitions.  Usually I can write

(my-define ...) ==> (begin (define ...) (define ...))

However, this doesn't interact well with local.  Is there a way of
identifying that I'm in a local context and expanding into something
else so that this "just works"?

[I don't suppose local would be willing to accommodate such forms by
splicing begin's...]

Naturally, documentation pointers/terms welcome.  Thanks.

Shriram


Posted on the users mailing list.