Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Latest commit

 

History

History
22 lines (15 loc) · 1.18 KB

closures.md

File metadata and controls

22 lines (15 loc) · 1.18 KB

Closures

The Concept

A closure is the use of one or more variables in an inner lexical scope from an outer lexical scope. Historically, this nomenclature was derived from λ-calculus and popularized by scheme (source) to reference a function's open and closed variable bindings.

What to cover

  • What a closure is. What makes up a closure in your language?
  • How to define a clojure. Does it occur transparently (like JavaScript)? Is it explicit (like PHP)? What syntax?
  • How to use a clojure. What can you use it for? Dynamic functions, function composition, memoizing, callbacks?

Implementations

Track Exercise Changes
JavaScript closures None