From Newsgroup: comp.lang.scheme
This baffles me:
(loop for i from 0 to 3
with result = 0
do
(incf result i)
return result)
0
Why? doesn't the stuff that occurs in the body of the `loop' make a difference? What am I missing?
Why didn't you do it this way?
(let ((result 0))
(loop for i from 0 to 3
do (incf result i))
result)
Why does it make worshippers of CL (COBOL-Like) so happy to do
everything inside of LOOP?
Why didn't you believe Paul Graham when he told you that LOOP
is a disaster?
Gauche Scheme:
(rlet1 result 0
(dotimes (i 4) (inc! result i)))
6
--- Synchronet 3.22a-Linux NewsLink 1.2