Closure (computer science): Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Pat Palmer
(draft 3)
mNo edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{subpages}}
A '''closure''' is a capability of certain [[programming language|programming languages]].  As with many terms relating to [[software]], there are conflicting definitions of closure within the field of [[computer science]]. According to [[Martin Fowler]]: "Some people say that the term only applies to an actual value that includes bindings from its environment...Others use the term 'closure' to refer to a programming construct that has the ability to bind to its environment."<ref name="MF">{{cite web|url=http://martinfowler.com/bliki/Closure.html|title="Closure"|publisher=©  Copyright Martin Fowler, all rights reserved|year=2007|accessdate=2007-09-17}}</ref>
A '''closure''' is a capability of certain [[programming language|programming languages]].  As with many terms relating to [[software]], there are conflicting definitions of closure within the field of [[computer science]]. According to [[Martin Fowler]]: "Some people say that the term only applies to an actual value that includes bindings from its environment...Others use the term 'closure' to refer to a programming construct that has the ability to bind to its environment."<ref name="MF">{{cite web|url=http://martinfowler.com/bliki/Closure.html|title="Closure"|publisher=©  Copyright Martin Fowler, all rights reserved|year=2007|accessdate=2007-09-17}}</ref>


The [[Ruby_(programming_language)#Closures|Ruby programming language]] article has a discussion of closures.


==References==
==References==
 
<references />[[Category:Suggestion Bot Tag]]
 
==External Links==

Latest revision as of 16:01, 29 July 2024

This article is a stub and thus not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article is under development and subject to a disclaimer.

A closure is a capability of certain programming languages. As with many terms relating to software, there are conflicting definitions of closure within the field of computer science. According to Martin Fowler: "Some people say that the term only applies to an actual value that includes bindings from its environment...Others use the term 'closure' to refer to a programming construct that has the ability to bind to its environment."[1]

The Ruby programming language article has a discussion of closures.

References

  1. "Closure". © Copyright Martin Fowler, all rights reserved (2007). Retrieved on 2007-09-17.