Talk:Callback (computer programming): Difference between revisions

Content deleted Content added
Mattsenate (talk | contribs)
adds note about recent added example, re-ordering of sections, and open question of further improvements
m Added note regarding inaccuracy about passing function argument to Python and JavaScript
Line 1:
This topic needs more general discussion of callbacks and their use, with simpler examples that explain the concept of a callback. I am rewriting most of this article to include much more information. -- ''Who said this and when? [[User:Mattsenate|Mattsenate]] ([[User talk:Mattsenate|talk]]) 01:07, 13 December 2012 (UTC)''
 
This article suggests that you can pass the name of a function to be used as a callback to another function for the languages JavaScript, Lua, Python, Perl and PHP. This is not true for at least Python and JavaScript; you must use the function objects themselves. There is a way to use the name of the function to denote the function itself in Python, but that is out of scope for this article. I will do some research for the other three languages before changing this. In the meantime, someone more knowledgeable, please change this!
 
A nice Python or Ruby callback example would be super, too. If no one gets to that before me, I will add that.
[[User:Deathweasel|Deathweasel]] ([[User talk:Deathweasel|talk]]) 22:01, 1 April 2013 (UTC)
 
== Suggestion ==