Subject: Re: troll's food (python vs lisp)
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 15 Sep 2004 06:35:23 -0500
Newsgroups: comp.lang.lisp
Message-ID: <XrCdnd6ZCtBmtdXcRVn-pQ@speakeasy.net>
Robert Strandh  <strandh@labri.fr> wrote:
+---------------
| Duane Rettig <duane@franz.com> writes:
| > What's wrong with just saying (the fixnum (1+ x)) ?  That doesn't
| > seem like very much convincing to me...
| 
| I do not know how to do that in loop. 
+---------------

CMUCL seems to generate fairly good code for either of these:

    (loop for i fixnum from 0 below 1000
      do (foo i))

    (loop for i fixnum = 0 then (the fixnum (1+ i))
	  while (< i 1000)       
      do (foo i))


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607