[plt-scheme] Modules, Units, and Classes

From: Zbyszek Jurkiewicz (zbyszek at mimuw.edu.pl)
Date: Tue May 22 07:55:44 EDT 2007


On Mon, 21 May 2007, Grant Rettke wrote:

> Tonight I read about units.
>
> It seems like (simplificaiton follows): You use modules to manage
> groups of functions. You use units to define the signature of
> functionality for provided by some group of functions (plug and play).
> You use classes to do the same thing, but along with that you get OOD.
>
> Does that sum it up?

Nearly

"You use modules to manage groups of any kind of bindings bindings (for 
variables, syntax extensions, functions, METHODS and CLASSES.
You use units mostly for interdependent modules (e.g. for two modules
their signatures=exports+imports depend on each other).
You use classes to implement abstract data types (actually you don't need
classes for object-oriented programming in Scheme, they are just syntactic
sugar)."

Regards

Zbyszek Jurkiewicz


> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.