Over a million developers have joined DZone.

Gosling on Closures

· Java Zone

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

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.

 

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}