Re:Why is perl losing its touch?
by knome on Wednesday February 25, 2015 @07:13PM
(#9110638)
You can do it by closing over a variable as well. Python closes over things just fine, it just has problems rebinding variables in outer scopes that aren't the global one. Here, I just make the variable a container, so I can alter a value inside it, instead of rebinding it ( only python2 has this problem, python3 has a "nonlocal" keyword to work around this in the language )
[ Parent
| on HN ]
There are no comments on this comment yet.