[r6rs-discuss] avoiding repetition in library definitions

From: Michael Sperber <sperber>
Date: Mon Nov 20 04:33:17 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
Received on Mon Nov 20 2006 - 04:33:08 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC