Talk:Apply a callback to an array: Difference between revisions

→‎specifying callback: Some inconclusive thoughts on what makes for a callback
(→‎array vs list: Needs to be further clarified?)
(→‎specifying callback: Some inconclusive thoughts on what makes for a callback)
Line 23:
The opening sentence of the Wikipedia [http://en.wikipedia.org/wiki/Callback_%28computer_science%29 entry] is: "In computer programming, a callback is executable code that is passed as an argument to other code." The current task description does not seem to specify that a callback is to be used. ("In this task, the goal is to take a combined set of elements and apply a function to each element.") Just adding the word to this won't work, as we wish to communicate what counts as a callback. --[[User:TBH|TBH]] 07:10, 16 January 2008 (MST)
:I was never really clear on what a callback is. Is it like a composition operator? --[[User:Mwn3d|Mwn3d]] 19:01, 16 January 2008 (MST)
::I see callbacks and function composition as only weakly related for this purpose. Lambda notation always involves function composition, and its functions are always anonymous. Function anonymity may be crucial to callbacks (I'm unsure). Posted solutions to this task suggest that others think it is. --[[User:TBH|TBH]] 12:39, 18 January 2008 (MST)
As I understand it: A callback is characterized by passing executable code as an argument to other code. Anonymity is characterized by the absence of binding between a function and a name. --[[User:TBH|TBH]] 12:39, 18 January 2008 (MST)
Anonymous user