Is there a simple way to lift a `require` form to the top level of a module? i.e., in the example below, is there something that would replace `WHAT-MAGIC-GOES-HERE?` to make it work?
I understand that `syntax-local-lift-expression` won't work. But `syntax-local-lift-require`, as best I can divine, needs you to furnish a particular identifier as the second argument, and incurs other housekeeping with scopes. So, though I'm not really sure what it's for, I'm pretty sure it's not for this. (FWIW `syntax-local-lift-module-end-declaration` didn't work either.) ;;;;;;;;;;;;;;;;;;;; #lang racket (define-syntax (lifted-require stx) (syntax-case stx () [(_ spec) (WHAT-MAGIC-GOES-HERE? #'(require spec))])) (let () (lifted-require math/number-theory)) -- 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.