By bloid
via weblogs.java.net
Published: Jan 25 2008 / 21:33
The question wheather closures are functions or objects came to my mind when reading several proposals concerning on closures. It looks like most authors regard them as both - functions and objects but giving not a real and concrete distinction in what case a closure is a function - or functional object - and an object.
Comments
bwtaylor replied ago:
They should be objects so they can be passed to methods. Look at how Groovy did the GDK.
Voters For This Link (10)
Voters Against This Link (4)