Talk:Closures/Value capture: Difference between revisions
Content added Content deleted
(indentation tweak) |
(Propose some tweaking to the task) |
||
Line 17: | Line 17: | ||
: Why 10 functions? Surely two or three would be sufficient to demonstrate how this works? The python example seems to put these in a list. |
: Why 10 functions? Surely two or three would be sufficient to demonstrate how this works? The python example seems to put these in a list. |
||
--[[User:Dgamey|Dgamey]] 11:46, 20 July 2011 (UTC) |
--[[User:Dgamey|Dgamey]] 11:46, 20 July 2011 (UTC) |
||
==Proposed task tweak== |
|||
Wouldn't it be better if this task were to have functions/closures that didn't just return the value? Right now, the value returned is the same as the index into the list, which makes it harder to interpret the output. –[[User:Dkf|Donal Fellows]] 08:27, 21 July 2011 (UTC) |