Comment your code. Use three semicolons in the left margin before the
definition for major explanations. Use two semicolons that float with the
code to explain the routine that follows. Two semicolons may also be used to
explain the following line when the comment is too long for the single
semicolon treatment. Use a single semicolon to the right of the code to
explain a particular line with a short comment. The number of semicolons
used roughly corresponds with the length of the comment.
Example:
;;; This function implements the square search loop. It keeps improving an
;;; initial guess until the value is good enough.
(define (try guess x)
;; If it's good enough guess - return it, otw, try improving.
(if (good-enough? guess x)
guess
(try (improve guess x) x))) ; loop back