[plt-scheme] Exploring Literate Programming in Scheme
Hello,
So, I used the scribble/lp module to write my first literate program:
<code>
#lang scribble/lp
(require scribble/lp)
<<lp_scheme.ss>>
@chunk[<squarefunction>
(define (f x)
(* x x))]
</code>
Nothing useful there, of course.
(Now I am sort of wondering OT, atleast at the surface, why would I just
not use plain comments, instead of literate programming constructs. Any
opinions welcome)
Best,
Amit
--
Journal: http://amitksaha.wordpress.com
µ-blog: http://twitter.com/amitsaha
IRC: cornucopic on #scheme, #lisp, #math, #linux