CSC/ECE 517 Fall 2011/ch1 1d sr: Difference between revisions
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
==External Links== | ==External Links== | ||
[http://www.artima.com/intv/closures.html] | [http://www.artima.com/intv/closures.html http://www.artima.com/intv/closures.html] | ||
[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1968.pdf] | [http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1968.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1968.pdf] | ||
[http://jens.mooseyard.com/2008/08/blocksclosures-for-c/] | [http://jens.mooseyard.com/2008/08/blocksclosures-for-c/ http://jens.mooseyard.com/2008/08/blocksclosures-for-c/] | ||
[http://tronicek.blogspot.com/2007/12/closures-closure-is-form-of-anonymous_28.html] | [http://tronicek.blogspot.com/2007/12/closures-closure-is-form-of-anonymous_28.html http://tronicek.blogspot.com/2007/12/closures-closure-is-form-of-anonymous_28.html] |
Revision as of 15:11, 2 September 2011
Wiki Chapter: CSC/ECE 517 Fall 2011/ch1 1d sr
Introduction
Closures
What are Closures
Why Closures (Motivation, Uses, Advantages)
Closures in Dynamically Typed Languages
Example use of Closures in Dynamically Typed Langauges
Example in Ruby
Example in JS
Example in Python
Closures in Statically Typed Languages
The Problem
Limitations of Statically Typed Languages
Lexical Scope
Functions not as first class citizens of the language
Implementing Closures in Statically Typed Languages
C : function pointers
C++ : function objects
Java : anonymous inner classes
Closures and Static Scoping
(Explanation)
Case study of Scheme
References
1. Matz discussion on Closures
External Links
http://www.artima.com/intv/closures.html
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1968.pdf
http://jens.mooseyard.com/2008/08/blocksclosures-for-c/
http://tronicek.blogspot.com/2007/12/closures-closure-is-form-of-anonymous_28.html