[plt-scheme] When would you use units rather than classes?

From: Henk Boom (lunarc.lists at gmail.com)
Date: Fri Apr 4 18:09:34 EDT 2008

On 04/04/2008, Grant Rettke <grettke at acm.org> wrote:
> I was reading the unit documentation in v372.
>
>  MzScheme's units are used to organize a program into separately
>  compilable and reusable components."
>
>  My first thought to accomplish such a thing would be to use classes.
>  Clearly, units are not classes, so there is a different intent.
>
>  What is the intent? When would you use units rather than classes?

I am curious as well, though I'd like to note that modules belong in
this discussion as well, as "seperately compilable and reusable
components."

    Henk


Posted on the users mailing list.