Misunderstanding about closures
jacek.generowicz at cern.ch
Wed Jun 9 09:13:43 CEST 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
> 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:
More information about the Python-list