[racket] requiring in multiple phases
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 usually a bad idea, I'd rather not
encourage it with a shortcut.
At Mon, 21 May 2012 14:55:08 -0400, Neil Van Dyke wrote:
> 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 ...) (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 shortcut for
> that?
> [...]
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users