Content deleted Content added
→First Example (Python): explanation: should it be clearer in article? |
|||
Line 767:
return expression</pre>
: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 had has to be understandable to non-Python programmers too. —''[[User:Ruud Koot|Ruud]]'' 11:14, 11 February 2012 (UTC)
|