I think there probably should not be a standard shortcut.
You may well have a good reason for to import a module into multiple
phases, but I think it usually indicates a code-organization problem
(where code that needs to live at different phases has been lumped
together at some level). Since it's
I'm wondering whether there's a standard shortcut, and, if not, whether
there should be.
(I am pretty deep into macrology right now, hence the question. :)
Jon Rafkind wrote at 05/21/2012 02:28 PM:
(define-syntax-rule (require-for-all req ...) (require (for-meta -1 req ...)
(for-meta 0 req ..
(define-syntax-rule (require-for-all req ...) (require (for-meta -1 req ...)
(for-meta 0 req ...) (for-meta 1 req ...))
(require-for-all "a.rkt" "b.rkt" "c.rkt")
should work afaik
On 05/21/2012 11:39 AM, Neil Van Dyke wrote:
> If I want to "require" a module for multiple phases, is there a short
3 matches
Mail list logo