3 ms·
No. Knuth's literate programming had the source code presented out of order (in whatever order the explanatory text desired).
by jongraehl 17y ago
No. Knuth's literate programming had the source code presented out of order (in whatever order the explanatory text desired).
- jashkenas 17y agoActually yes, because of JavaScript/CoffeeScript's habit of pushing declarations up before evaluation, you can more or less lay out your code in any order. We take advantage of this in the Lexer, here... http://jashkenas.github.com/coffee-script/documentation/docs/lexer.html http://jashkenas.github.com/coffee-script/documentation/docs... ...to stash all of the regex matchers down at the bottom of the file, even though the functions that make use of them come first.