Jump to content

Talk:Closure (computer programming)/to do

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ruud Koot (talk | contribs) at 17:26, 19 February 2012. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
  • Introduction
    • Rewrite lead paragraph
      • Closure = Function + Environment
      • What happens when creating a closure? (Closure captures the current lexical environment)
      • What happens when entering a closure? (Function is executed in the lexical environemnt captured by the closure)
    • Add an introductory section
      • Targeted primarily at imperative programmers who have little experience with non-local variables
  • History
  • Semantics
  • Implementation
    • Luca Cardelli, [lucacardelli.name/Papers/CompilingML.A4.pdf Compiling a Functional Language].
    • Simon Peyton Jones, Implementation of Functional Programming Languages.
    • Z. Shao and A. W. Appel. Space-efficient closure representations.
    • Upvalues: Roberto Ierusalimschy et al., "The Implementation of Lua 5.0"
  • Applications: thunk (delayed computation), memoization, object system, hidden state/static variables