[Haskell-cafe] Code that writes code
donn at avvanta.com
Tue Aug 24 18:54:51 EDT 2010
Quoth "Richard O'Keefe" <ok at cs.otago.ac.nz>,
>> Of course code generation is perfectly fine when the output is not
>> intended to be read and maintained by a human.
> "Read" and "maintained" are two different issues.
> Depending on the tool-chain, it may be necessary for people to
> read the generated code while debugging.
Indeed, for my modest purposes it has been easy enough to generate
code in a conventional, readable format - and honestly it's better
self-documentation than the code I write directly. The mechanical
consistency of generated code makes it especially transparent.
Donn Cave, donn at avvanta.com
More information about the Haskell-Cafe