One thing that one could do with Scheme macros is actually
write unit
tests *inside* the source code. It'd be trivial to have a
test
harness which would take a module name, extract the tests
from the
module's source, and run them. And the tests would act as
an
additional sort of documentation: runnable examples, built
right into
the source code.
What do you think?
_______________________________________________
Minor mailing list
Minor red-bean.com
http:/
/www.red-bean.com/mailman/listinfo/minor
|