3 ms·
There are two aspects to Knuth-style literate programming: (1) the primary emphasis is on the description and commentary rather than on the code; (2) the orde
by fanf2 13y ago
There are two aspects to Knuth-style literate programming:
(1) the primary emphasis is on the description and commentary rather than on the code;
(2) the order of presentation is determined by the description rather than the program.
The first is a useful and valuable tool. The second is an artefact of using a language like Pascal which has a strict inflexible order to its code and no suppor for modules. If you have a decent language then literate programming is just a different kind of comment syntax.
http://www.haskell.org/haskellwiki/Literate_programming http://www.haskell.org/haskellwiki/Literate_programming