Sadly not, from my understanding of the proposal :( What really counts though is that we get 1st-class method handles. That then allows interop between the various JVM languages, as well as any "hoisting" technique in the book (including compiler-generated approaches used by Scala, Clojure, et. al.)
When we consider that Java was able to add both inner classes and generics without changing the bytecode, you get a better feel of what innovation might be possible on to of this minor addition... On 1 June 2010 19:41, Casper Bang <[email protected]> wrote: > On Jun 1, 8:04 pm, Alexey Zinger <[email protected]> wrote: > > So basically, this is just syntax sugar around single-method anonymous > inner classes. I'm not saying it's the end of the world, but they aren't > closures strictly speaking. Everything I ever read about what > differentiates closures from anonymous inner classes (control flow, lexical > scoping) is untouched as compared to what we do already with more verbose > syntax. > > Yeah that was my conclusion as well; that we will have to continue to > put variables into a one-dim array in order to hoist it from stack to > heap and avoid the annoying "final limitation". This does not match > Neal Gafter's definition of a closure. Or did I misunderstand? > > -- > 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]<javaposse%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- Kevin Wright mail/google talk: [email protected] wave: [email protected] skype: kev.lee.wright twitter: @thecoda -- 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.
