Misunderstanding about closures
Jacek Generowicz
jacek.generowicz at cern.ch
Wed Jun 9 03:13:43 EDT 2004
Alexander Schmolck <a.schmolck at gmx.net> writes:
> Not quite. In fact in the language that more or less started it all,
> scheme, the standard iteration construct 'do' does indeed introduce
> a *new binding* on each iteration.
Yes, but this is a consequence of Scheme faking iteration with
recursion.
> Common Lisp OTOH doesn't -- like python:
If you used recursion-based iteration constructs in either of these
languages, the same would happen.
Future Googlers please refer to:
http://www.google.com/groups?as_umsgid=tyfsmgtbewl.fsf%40lxplus030.cern.ch
More information about the Python-list
mailing list