On the recent episode of Java Posse, several people referred to Java's lack of closures. This is wrong. Java has full closures and has always had them.
A closure is when you define a function that "closes" over the local environment from which the new function is defined and can access local variables of that defining scope. Java absolutely does this. I've recently done some programming with GWT (Java), JavaFX 2 (in Java), and client-side JavaScript (not Java), and we've been using closures quite extensively in all three. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
