[r6rs-discuss] [Formal] Add a multi-file library example

Abdulaziz Ghuloum aghuloum at cs.indiana.edu
Wed Nov 15 01:20:44 EST 2006


On Nov 15, 2006, at 12:51 AM, MichaelL at frogware.com wrote:

> Thanks, Will.
>
> I was thinking, for example, of a library like SSAX that's too big to 
> fit
> in one file. If you accept that the proper course would be to break 
> SSAX
> into pieces and import all pieces as libraries then this approach 
> might be
> ok. Personally, I'd like to know that my internal helper libraries are
> private and completely shielded from public view. But maybe that's just
> me.

You might be in a minority group, but you're certainly not alone.  If I
had to make a choice between the two, I would pick local modules (like
Chez's modules) over global libraries any time of the day.  I believe in
libraries being a way of publishing a coherent set of related procedures
and macros that serve a particular purpose in one bundle called a 
library.
Internal to a library, there must be ways of structuring code and
controlling visibility without having to resort to  polluting the global
name space of libraries.

Aziz,,,




More information about the r6rs-discuss mailing list