Subject: Re: ME WANT LEARN SCHEME!
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 16 Sep 2000 02:44:31 GMT
Newsgroups: comp.lang.scheme
Message-ID: <8pumqf$t9sg2$1@fido.engr.sgi.com>
Christopher Browne <cbbrowne@hex.net> wrote:
+---------------
|    For instance, which looks more meaningful?
| Indented:
| (define (showcookie)
|   (let* 
|       ((cookie (read-random-cookie))
|        (sig (build-path (getenv "HOME") ".signature"))
|        (outport (open-output-file sig 'replace))
...
|        (output-to-file
| 	(lambda (line)
| 	  (write-linep line outport))))
|     (for-each output-to-file cookie)
|     (for-each write-line cookie)
+---------------

Hmmm... Why did you indent it *that* way? The usual indenting I've
seen [and used] is:

  (define (showcookie)
    (let* ((cookie (read-random-cookie))
           (sig (build-path (getenv "HOME") ".signature"))
           (outport (open-output-file sig 'replace))
           ...
           (output-to-file
	     (lambda (line)
	       (write-linep line outport))))
      (for-each output-to-file cookie)
      (for-each write-line cookie)
      ... ))


-Rob

-----
Rob Warnock, 41L-955		rpw3@sgi.com
Network Engineering		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043