CSC/ECE 517 Fall 2007/wiki1 2 pk
Closures
Closures are functions which are evaluated in an environment containing bound variables. They are usually found in languages which treat functions as first class values i.e. they can passed around as arguments to functions, bound to variables and even be returned from functions. Closures were initally developed in the 1960s in a language called Scheme and was later adopted by many programming languages like Ruby and Smalltalk.