Link Details

Link 62994 thumbnail
User 111696 avatar

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.
  • 10
  • 4
  • 996
  • 244

Comments

Add your comment
User 242727 avatar

bwtaylor replied ago:

0 votes Vote down Vote up Reply

They should be objects so they can be passed to methods. Look at how Groovy did the GDK.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.