Search This Blog

Friday, November 6, 2009

Closure, Why Is It Useful?

Languages support closure that can make a function having a "state". Similar to a state of a class in C++.

Many times, closure is useful to achieve the effect of a class without defining a class.

http://stackoverflow.com/questions/1305570/closures-why-are-they-so-useful
http://news.ycombinator.com/item?id=926077

No comments: