On 26/01/12 9:07 PM, Brent Hilpert wrote:
...
From the 3 explanations (Conner,Assumpcao,Mouse) I have seen so far in
this discussion, a "closure" appears to be the functional-programming
terminology/equivalent for what in OOP would be an "instance of an
object". ...
So is this (closure vs. object-instance) just different worlds with
different syntax and terminology? That is, leaving aside the
functional-programming vs. procedural-programming world differences is
there something else to significantly distinguish a closure from an
object-instance?
There is a duality between objects and closures, indeed; this is quite
visible in JavaScript, for example.
http://c2.com/cgi/wiki?ClosuresAndObjectsAreEquivalent
--Toby