It's not a secret anymore!*
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 Spring in Action this week in the Spring 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Groovy vs Java Closures