Talk:Closures/Value capture: Difference between revisions

(→‎Proposed task tweak: Add the actual suggestion; d'oh!)
Line 20:
==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. (Using the square of the value would be just as easy to implement, and yet be far clearer.) –[[User:Dkf|Donal Fellows]] 08:27, 21 July 2011 (UTC)
: I would be agreeable Unicon contributor --[[User:Dgamey|Dgamey]] 10:04, 21 July 2011 (UTC)
Anonymous user