[plt-scheme] Exploring Literate Programming in Scheme

From: Amit Saha (lists.amitsaha at gmail.com)
Date: Fri Aug 7 14:02:22 EDT 2009

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


Posted on the users mailing list.