[plt-scheme] dynamic-require module question

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue May 15 19:18:55 EDT 2007

At Tue, 15 May 2007 18:56:51 -0400 (EDT), Dimitris Vyzovitis wrote:
> On Wed, 16 May 2007, Matthew Flatt wrote:
> 
> > At Tue, 15 May 2007 18:31:26 -0400, Robert Nikander wrote:
> >
> > No, not currently. You can trade the `(module ...)' wrapper for a
> > `#reader' prefix, like this:
> 
> Speaking of which, is there any way to make the reader automatic with the
> custom language?
> That is, saying
> (module foo foolang ...) implies a reader defined somewhere in foolang?

A `#reader ...' extension can introduce a `(module ...)' wrapper, but a
`(module ...)' wrapper can't introduce a `#reader ...'.

To some degree, then, it's a problem with the way we write modules. We
start modules with `(module ...)' instead of `#reader ...'. Of course,
`#reader ...' is ugly.

We've been thinking about this. Stay tuned.

Matthew



Posted on the users mailing list.