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.
Comments
kunnar replied ago:
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.
Voters For This Link (16)
Voters Against This Link (1)