This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Groovy and the fly likes Groovy vs Java Closures Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy vs Java Closures" Watch "Groovy vs Java Closures" New topic
Author

Groovy vs Java Closures

Paul Michael
Ranch Hand

Joined: Jul 02, 2001
Posts: 697
Is there even a slight chance for Groovy closure syntax to be the official closures syntax in Java?

How are Groovy closures different from those proposed in JDK 7?

Thanks.


SCJP 1.2 (89%), SCWCD 1.3 (94%), IBM 486 (90%), SCJA Beta (96%), SCEA (91% / 77%), SCEA 5 P1 (77%), SCBCD 5 (85%)
Dierk König
author
Ranch Hand

Joined: Nov 01, 2006
Posts: 43
Is there even a slight chance for Groovy closure syntax to be the official closures syntax in Java?
No.
How are Groovy closures different from those proposed in JDK 7?
They are dynamic (IMHO a prerequisite for useful closures...).

[ October 21, 2008: Message edited by: Marc Peabody ]
 
Don't get me started about those stupid light bulbs.
 
subject: Groovy vs Java Closures