Talk:Closure (computer programming): Difference between revisions

Content deleted Content added
m Don't start with Lisp: fix emphasis and clumsy wording
Don't start with Lisp: JavaScript is the ideal "contrasting" language
Line 6:
:: It's important to remember here that [[Wikipedia:What Wikipedia is not#Wikipedia is not an indiscriminate collection of information|Wikipedia is not a textbook or tutorial]], but an encyclopedia: the goal is ''not to teach'' (that's what [[Wikibooks]] is for), but to ''describe'', with accuracy and relevance. When it comes to the choice of example language, it's not industrial popularity that's relevant, but things like historical prominence, and representation in the literature.
:: With all that in mind, i think [[Lisp programming language|Lisp]] is an ideal choice; probably the only change called for is to switch the examples to the [[Scheme programming language|Scheme]] dialect, because of its simpler syntax, and because of the important role it played in popularizing the concept of closures to begin with. (If a non-Lispy example is desired for contrast, a member of the [[ML programming language|ML]] family is probably appropriate.) --[[User:Piet Delport|Piet Delport]] 21:06, 3 August 2006 (UTC)
 
::: I'm all for using Lisp or Scheme along with a second language - but I think JavaScript would be the ideal choice for that language. It's certainly relevant, being by far the most widespread language that supports closures, and its syntax is instantly clear to a huge number of programmers. Even if the goal isn't to teach, a familiar language helps make the article clear to a wider audience. I would be happy to provide some JavaScript examples to go along with the Lisp ones if others agree. [[User:Geary|Michael Geary]] 04:44, 20 August 2006 (UTC)
 
==Closures in Perl==