@Russel Winder, A closure is just something that "closes" over the local variable environment. That's it. Wikipedia says a closure is "a function together with a referencing environment for the nonlocal names (free variables) of that function". Java absolutely does that. I don't think your definition is accurate. Java is still missing first class functions or functions as objects, and concise syntax for anonymous functions. Java also lacks a native library of persistent immutable data structures which is important for functional programming. You can use Scala's collections from Java but it would be better to have that functionality in the official standard library.
I'll take your word on the invokedynamic stuff. On Jul 29, 7:07 am, Mark Derricutt <[email protected]> wrote: > Out of curiosity - how are you using it? ( I mean from a practical point of > view ). Just manually download the JSR-310 jar files and use it like any other library. It's very straightforward. The binaries haven't changed in quite a while. -- 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.
