On 11/8/06, Jim Blandy <jimb red-bean.com> wrote:
> 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?
Sure -- but I think this is done with conditional
compilation in lots
of languages, and doesn't require a very sophisticated macro
system.
_______________________________________________
Minor mailing list
Minor red-bean.com
http:/
/www.red-bean.com/mailman/listinfo/minor
|