[racket] CoreMIDI bindings

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Wed Jul 21 15:45:56 EDT 2010

> On Jul 21, 2010, at 2:51 PM, Evan Hanson wrote:
>
> Also, is this the kind of thing that should be namespaced? In
> contrast to other languages where namespacing is used heavily
> (sometimes even to a fault), it seems that many scheme libraries
> are quite flat. Is this simply left up to the user to manage, or does
> the module system take care of this, or is there something else
> I'm missing altogether? Forgive the naïveté if this should be clear to

One way that name collisions get avoided is the

(require (prefix-in pre: "imported-module.rkt"))

form. Every name in the module is prefixed with pre: when you use it
in your module, so if you have any name collisions or want to remind
yourself where something came from, you just give the module an
appropriate prefix when you import it in.

Todd


Posted on the users mailing list.