To fill out Doug's answer for your specific questions:
(if test then else) (cond (test1 exp1) (test2 exp2) (else exp3))
Or, for conds with long series of expressions:
(cond (test1 exp1 exp2) (else exp3 exp4))
Comment conventions are slightly weaker. When I write thorough code, I do something like this:
;;; new section ;;; ;;; section comments (define (fg . x) "docstring goes here" ;; in-function comments (gx)) ; trailing line comment
But the exact boundaries to use ; vs ;; are changing. In particular, some people (including me) do not really like comments at the end of a line and use it instead ; for comments in the function and ;;; for comments on the section.
Nathan shively-sanders
source share