When to use closure?

Posted by shahkalpesh on Stack Overflow See other posts from Stack Overflow or by shahkalpesh
Published on 2008-11-02T07:27:37Z Indexed on 2010/03/31 4:13 UTC
Read the original article Hit count: 499

I have seen samples of closure from - http://stackoverflow.com/questions/36636/what-is-a-closure

Can anyone provide simple example of when to use closure?

Specifically, scenarios in which closure makes sense?

Lets assume that the language doesn't have closure support, how would one still achieve similar thing?

Not to offend anyone, please post code samples in a language like c#, python, javascript, ruby etc.
I am sorry, I do not understand functional languages yet.

© Stack Overflow or respective owner

Related posts about closure

Related posts about c#