Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!travelers.mail.cornell.edu!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!news.mel.aone.net.au!inferno.mpx.com.au!metro!physiol.su.OZ.AU!john
From: john@physiol.su.OZ.AU (John Mackin)
Subject: Scheme coding style question
Message-ID: <1995Oct26.060006.5132@physiol.su.OZ.AU>
Organization: The Land of Summer's Twilight
Date: Thu, 26 Oct 1995 06:00:06 GMT
Lines: 25

Tonight I wanted to write a loop like this:

(let loop ((size 100)
           (vec (make-vector size)))
	  ... loop body ...)

Of course that doesn't work.  I knew it wouldn't.  What I really want here is
not named let, it's named let*.  But there isn't any such thing as named let*.
I ended up writing:

(let ((size 100))
  (let loop ((size size)
             (vec (make-vector size)))
	    ... loop body ...))

I don't like that at all.  How should I write this cleanly?  Thanks for any
tips.

(If you follow up, I'd really appreciate an e-mail copy of the followup;
my news feed here is only barely working.  I will summarize e-mail replies.)

-- 
John Mackin <john@physiol.su.oz.au>
Knox's box is a 286.                 Fox in Socks does hacks and tricks
Knox's box is hard to fix.           To fix poor Knox's box for kicks.
