Subject: Re: Midfunction Recursion
From: Erik Naggum <erik@naggum.no>
Date: 24 Oct 2002 18:08:10 +0000
Newsgroups: comp.lang.lisp
Message-ID: <3244471690409508@naggum.no>

* Greg Menke
| Assuming the map results you give are for scheme, it seems Scheme is
| closing over the value of i instead of the variable itself.  If so, are
| all Scheme closures formed that way?

  Scheme specifies that each new "iteration" has its own bindings, just as
  if it had used (local) recursion, while Common Lisp has one binding and
  iterates by asssigning new values to it.  The more basic Scheme facility
  "named let" makes this somewhat more explicit.

-- 
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.