1

Possible Duplicate:
What is the difference between a 'closure' and a 'lambda'?

Hello, World!

Forgive me if this is a tad of a newb q, but everyone always gets computersciencey about it..

What actually is a lambda? And what is a Closure?

As far as I understand a lambda is an anonymous function and a closure is a pointer to the variables of a lambdas parent scope.. (like a snapshot of the variables of the function it was declared in)

How correct is this?

Thanks

Daniel

Community
  • 1
  • 1
Daniel Upton
  • 5,561
  • 8
  • 41
  • 64
  • 3
    You may want to accept some of the answers that have been provided to you (especially because it seems like there are some good ones). You will be more likely to get answers to your future questions. – JasCav Dec 07 '10 at 20:30

1 Answers1

1

That is totally correct. The term closure is describing the scope thing, the term lambda is describing the whole function as an object thing.

Matt Briggs
  • 41,224
  • 16
  • 95
  • 126