[racket-dev] using module system for alternate namespaces

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Mon Nov 3 23:03:27 EST 2014

On Nov 3, 2014, at 10:10 PM, Dan Liebgold wrote:

> Jay's idea was to use "define" to create a module binding from "a" to a generated or decorated name, provide "a" (or not), and put the generated name in the hash table. I'm pursuing that approach currently.

Yeap, that would be the next idea (now that I figured what you meant). 

> PS: The motivation for this is to finally get our custom language "DC" to be implemented as a proper Racket module language.  It's turning out to be a bit of a nightmare since we rely so heavily on the side effects of "load" and we have 4 different namespaces active at once.  This example is just one small piece.

What this really shows is how bad the choice of load was. I would bet a beer or something that you'll find #lang/require and friend will eventually make your life easier and happier. 

-- Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20141103/196bcbca/attachment.html>

Posted on the dev mailing list.