[r6rs-discuss] Import choices: flexibility vs. discoverability
John Cowan
cowan at ccil.org
Tue Oct 13 17:06:26 EDT 2009
Ray Dillinger scripsit:
> It is necessary at times to write modules that do things in different
> ways depending on what resources they have available. If some module
> is unavailable, they load some other module and do it a different
> way instead.
That can be achieved, as I was trying to explain, by loading a shim
module that is always available and includes one of several sets of
code, either the Good Module code or an interface to the Bad Module.
Include is ordinary syntax, so it can be controlled by cond-expand
or a syntax-rules macro.
--
There is / One art John Cowan <cowan at ccil.org>
No more / No less http://www.ccil.org/~cowan
To do / All things
With art- / Lessness --Piet Hein
More information about the r6rs-discuss
mailing list