Personal tools
You are here: Home Members martin Martins Weblog No Closures in Java 7?
Document Actions
  • Print this page
  • Add Bookmarklet

No Closures in Java 7?

Currently it seems that Java 7 will not get closures. Oh dear.

According to Hamlet D'Arcy's blog Java 7 will not get closure support. That's bad news to me. It should have closures instead of the new style "for" loop added in Java 5. It should have closures in Java 6. Now it seems that it will not get closures in Java 7.

Closures are not that difficult to understand. At least when you compare them to anonymous inner classes in Java. Others disagree. I don't follow the reasoning of the closure opponents when they say that because there are stupid Java programmers out there you should limit the Language trying to prevent them from doing too much harm. That's just impossible. Incompetent programmers will shoot themselves in the foot in any language.

Fortunately there are other languages on the JVM that can use the real strength of Java: libraries, portability, and (to some extent) tooling.

_____
tags:
Monday, December 15, 2008  | Permalink |  Comments (1)

Java 7 might get closures

Posted by Martin Kneißl at 2009-11-19 11:39
Quick update:

At Devoxx 2009, Mark Reinhold said it was time to add closures to Java.

According to @ijuma the proposal is described in http://www.javac.info/closures-v06a.html .

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: