[plt-scheme] Exploring Literate Programming in Scheme

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Aug 7 14:25:26 EDT 2009

Because this is _not_ how you use literate programming. I recommend  
you start with the docs and then you read Knuth's original article  
(or the other way around).


On Aug 7, 2009, at 2:02 PM, Amit Saha wrote:

> 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
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.