Talk:Closure (computer programming): Difference between revisions

Content deleted Content added
Ruud Koot (talk | contribs)
Ruud Koot (talk | contribs)
Line 768:
:So <code>incrementer(1)</code> is itself a function which adds 1 to its argument (named <code>y</code>). [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 06:12, 11 February 2012 (UTC)
 
: The example was recently replaced. My [http://en.wikipedia.org/w/index.php?title=Closure_%28computer_science%29&oldid=473219244#Example old example] was IMHO clearer. The other editor apparently found it [http://en.wikipedia.org/w/index.php?title=Closure_%28computer_science%29&action=historysubmit&diff=475069300&oldid=473219244 too verbose], but this was intentional as hadit has to be understandable to non-Python programmers too. —''[[User:Ruud Koot|Ruud]]'' 11:14, 11 February 2012 (UTC)
 
: Also, the new example fails to demonstrate that the state captured in a closure can be mutable. I'll restore the old example. —''[[User:Ruud Koot|Ruud]]'' 11:19, 11 February 2012 (UTC)