A commentator on my last entry on closures
I don't not fully understand why closures could not capture bindings
upon being defined, though: [...]
As your first example shows, this is what many people intuitively
expect, it seems. So, do you know why this behavior was not chosen?
I think the real answer is 'because how Python does it is how languages
usually do it'. Let me elaborate on that.
When you add closures to a language,...