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

From: Grant Rettke (grettke at acm.org)
Date: Fri Apr 4 17:54:42 EDT 2008

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?


Posted on the users mailing list.