Alex Rivera | Logout

Closures in Java 7

Asked 2008-10-24T13:44:24.180
29

I have heard that closures could be introduced in the next Java standard that is scheduled to be released somewhere around next summer.

What would this syntax look like?

I read somewhere that introducing closures in java is a bigger change than generic was in java 5. Is this true? pros and cons?

(By now we definitely know that closures not will be included in the next Java release)

OR

edit: http://puredanger.com/tech/2009/11/18/closures-after-all/ :D

edit2: Re-thinking JDK7: http://blogs.oracle.com/mr/entry/rethinking_jdk7

edit3: There’s not a moment to lose!: http://blogs.oracle.com/mr/entry/quartet

Edit
Report

2 Answers

3

This is the java 7 features http://tech.puredanger.com/java7/#switch the examples are very usefull.

answered 2008-10-24T13:54:48.793
2

I think there is still a lot of debate going in with regards to what syntax will ultimately be used. I'd actually be pretty surprised if this does make it into Java 7 due to all of that.

answered 2008-10-24T17:54:33.473

Your Answer