|
|
|
|
|
by kazinator
1378 days ago
|
|
What does that Python mean, by the way? The passing of the value into the function is clear enough, but I have no idea whether f is assigning to the local x, or binding a new one. If we capture a lambda before "x = 2", and then call it afterward, does it see an x which holds the original argument value or which holds 2? In Lisps, this stuff is clear. Mostly. Except Common Lisp has some areas where it waffles: in some iteration constructs, implementations can bind a new variable or reuse the same one. Those choices are individually clear, though. |
|