Tay Ray Chuan home archive

JSRs for Java SE7

Wed, 17 Nov 2010 12:47:16 +0800 | Filed under java

JSRs for Java SE7 are out. In terms of language-level changes, I found JSR 334 particularly interesting; proposed changes include:

Makes you wonder why Java didn't have them earlier on. But the most exciting proposal would be JSR 335:

JSR 335: Lambda Expressions for the JavaTM Programming Language

Having to type so much code (class, function, modifiers, return type, etc.) just to create a callback - and a pretty strait-jacketed one at that - is a big turn-off. Hopefully this makes it in. Interestingly, this one's supported by ex-JCP EC Doug Lea and current member Bob Lee.

blog comments powered by Disqus