Link Details

Link 17881 thumbnail
User 111696 avatar

By bloid
via rickyclarkson.blogspot.com
Published: Apr 04 2007 / 17:34

Josh Bloch, with "crazy" Bob Lee and Doug Lea, proposed their Concise Instance Creation Expression solution for closures for Java, last year. They didn't address returning from the enclosing scope from within the closure. Theirs is a trivial syntax change, probably fairly straightforward to implement but it wouldn't address simple cases such as finding the first line in a file that matches an expression. If you're already familiar with why CICE is insufficient, feel free to skip past the code here.
  • 16
  • 1
  • 1024
  • 372

Comments

Add your comment
User 186344 avatar

kunnar replied ago:

1 votes Vote down Vote up Reply

I heard Neil Gafter presentation in TheServerSide Java symposium in Las Vegas, and i must say that i am definitely pro closures now. He convinced me that real closures are much more powerful than our current anonymous inner classes.

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.