[r6rs-discuss] avoiding repetition in library definitions

Michael Sperber sperber at informatik.uni-tuebingen.de
Mon Nov 20 04:33:08 EST 2006



Trent Buck <trentbuck at gmail.com> writes:

> Is it possible to (R5.91RS portably) abstract over repetition in
> library definitions?
> [...]
>       (library* (Text ParserCombinators Parsec)
>                 (1 0 3)
>                 (Pos Error Prim Combinator Char)
>                 (export ...)))
>
> would be nice.

We did discuss this among the editors:

http://www.r6rs.org/r6rs-editors/2006-August/001710.html

Generally, the problem with this is that you can get non-local
interactions.  Specifically, imports of your program (and thus the
semantics of your program) might change when a library is added to the
system, which is generally a bad property to have.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



More information about the r6rs-discuss mailing list