Jump to content

Talk:Closures/Value capture: Difference between revisions

→‎Proposed task tweak: Add the actual suggestion; d'oh!
(Propose some tweaking to the task)
(→‎Proposed task tweak: Add the actual suggestion; d'oh!)
Line 19:
 
==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)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.