|
|
||
Editor's Daily BlogFeels Just Like It ShouldPosted by invalidname on August 19, 2008 at 07:12 AM | Comments (0)Shouldn't closures be about expressiveness? In another sign that the debate over closures remains robust and unresolved, Tapestry creator Howard Lewis Ship has added his thoughts to the discussion. In the blog entry My Ideas for Java Closures, he says he currently gets a lot done with inner classes, but "it really comes down to conciseness. I can accomplish pretty much everything I need using inner classes and holder objects, such as AtomicInteger and friends. But it ends up being more code than I'd like." So what does he want from a closure syntax? He starts with the basic principle of what is to be accomplished in the first place:
Howard wants closures defined in terms of an interface that contains a single method, with the closure block granted read/write access to local variables and method parameters (an ability to be provided by syntactic sugar). The closures would be exposed via a Groovy-like syntax:
Ultimately, Howard sees CICE as the current closure proposal closest to what he wants, though he thinks the specifics of the proposal bog down on details that the compiler should be able to resolve.
So there you have it, another voice added to the closures debate, one which calls for clarity and expressiveness (as opposed to "everyone will hate Java if it doesn't add Ruby-like features, and soon"). But is this the right approach, or will it get hung up on edge cases or other gotchas? Also in Java Today, The Aquarium reports on a Java EE 6 milestone in JAX-RS in Proposed Final Draft... and Jersey also Supports Spring. "JAX-RS (REST Support for the Java Platform aka JSR-311) became the first Java EE 6 specification that Reached Proposed Final Draft stage - download the PFD Specification and please provide feedback. The team work now is on the TCK and the RI (see JCP Process). Jersey is both a Reference Implementation and Production Quality and will continue to evolve and add useful features, like the Integration with Spring." Shai Almog has posted a New LWUIT Eye Candy Video. "The LWUIT team just posted this new video to YouTube showing off some of the latest features in LWUIT together with some tried and true features. Check out the drag & drop functionality and "swing-in/swing-up" dialogs and menus." Today's Weblogs begin with a blog from Terrence Barr Comparing LWUIT and JavaFX Mobile. "Open sourcing LWUIT last week has created a lot of buzz - the response has been phenomenally positive. We've also gotten a few questions regarding the relationship of LWUIT and the upcoming JavaFX Mobile platform - there still seems to be a bit of confusion here. So I thought it would be useful to devote a "FAQ" blog entry to this topic." Tim Boudreau revives some potentially controversial thoughts written a while back in Nobody Thinks They're An Enterprise. "I wrote this blog nearly two years ago, and was politely asked/advised not to publish it. If I rewrote it today, I'd probably make it a bit shorter. But I think the points are ones our industry needs to learn." Bruno Ghisi says he's Falling In Love With My Sentilla Perk Kit. "I got a Sentilla Perk Kit. This is my first introductory post showing how to set up the environment and create a simple Hello World."
Today's Forums begin with JXTA developer Finally, Current and upcoming Java Events :
Registered users can submit event listings for the java.net Events Page using our events submission form. All submissions go through an editorial review before being posted to the site. Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of java.net it will be archived along with other past issues in the java.net Archive. Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment | ||
|
|