At Mon, 18 Mar 2019 19:32:40 -0400, Philip McGrath wrote:
> On Mon, Mar 18, 2019 at 9:14 AM Matthew Flatt wrote:
>
> > I wonder whether the solution is an extension of `scribble/lp2` to
> > support a `require-for-chunk` form where `chunk` records any such
> > imports in its context and adds then
On Mon, Mar 18, 2019 at 9:14 AM Matthew Flatt wrote:
> I wonder whether the solution is an extension of `scribble/lp2` to
> support a `require-for-chunk` form where `chunk` records any such
> imports in its context and adds then to the stitched-together program.
>
> (require-for-chunk (only-in r
Just to make sure we're on the same page, it seems like your example
fails for the same reason that
#lang scribble/lp2
@(require racket/string)
@(chunk <*> string-join)
fails. That `require` turns out to do nothing, and there's no binding
of `string-join` in the "phase" of the program is that
Racket makes it easy to write macros that mix run-time code with various
compile-time phases, using lexical scope to refer unambiguously to the
correct binding for each identifier, including bindings that are not
directly exported. Macro-generating macros are a great example, in that
they expand to
4 matches
Mail list logo