Talk:Callback (computer programming): Difference between revisions

Content deleted Content added
User exit?: moved to its own article
Line 78:
 
I created a short (stub) article for ''[[user exit]]''. I also changed the into para of this article, removing the "also called a user exit" phrase, and adding a link to the new article in the "See also" section. — [[User:Loadmaster|Loadmaster]] 18:54, 14 March 2007 (UTC)
 
== Dynamic scoping confusion ==
 
Following statement is not true:<br/>
''Dynamically scoped languages (including functional programming languages) can provide access to application data automatically via closures.''<br/>
I think it should mean ''Lexically scoped functional programming languages...'' as we are talking about being able to reference local variables (hence lexical or static scope) by a nested function (or lambda expression). Closures are built precisely for this purpose and they are '''absent ''' in languages with dynamic scoping. I wrote ''functional programming languages''' but I believe that Python and Ruby, among others, also have closures.
 
On the other hand, dynamically scoped variables also seem to be useful in callbacks, but they work more like ''implicit parameters''.
 
Static/dynamic scoping seems to be confusing for a lot of people and I haven't found a good reference on the web.