Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Gosling on Closures

DZone's Guide to

Gosling on Closures

· Java Zone
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

James Gosling decided to state his opinion unambiguously on closures for Java 7. In summary: yes, he wants 'em!

I think he makes an important point that there are a set of features including closures that Neal has been talking about and they are inter-related. It seems to me that along with closures, stuff like extension methods and chained invocation are likely important counterparts, not just random interesting ideas. Of course, a simliar thing happened in Java SE 5, where we saw things like variable args, enums, generics, static imports, autoboxing and annotations could support each other in different ways where it was necessary.

Hopefully, the closures and other language work will move along quickly enough that library JSRs can take advantage of the same facilities.

 

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}