This post originated from an RSS feed registered with Java Buzz
by Max Zone.
Original Post: Is Josh Bloch the biggest problem for closures?
Feed Title: dzone.com: java
Feed URL: http://feeds.dzone.com/dzone/java
Feed Description: dzone.com: fresh java links for developers
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.