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

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

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.

 

Bitbucket is the Git solution for professional teams who code with a purpose, not just as a hobby. Get started today, it's free.

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 }}