Method reference double-colon syntax

Matthew Adams matthew at matthewadams.me
Thu May 31 09:21:27 PDT 2012


This one is crucial for me.  I'm sad to hear it won't be in 8.  Is it
currently targeted for 9?  Can I get an "8.1"?  ;)

On Thu, May 31, 2012 at 8:22 AM, Brian Goetz <brian.goetz at oracle.com> wrote:

> > Another way to use the # in a future release would be to introduce
> literals for members of classes.
>
> Well-covered ground.  Through target typing, it would indeed be possible
> to convert method references (Foo::bar) into Method objects or
> MethodHandle objects.  (The same syntax can be extended to fields being
> converted to Field objects.)  We've chosen to not do so for 8, but were
> careful to leave room for this in the future.
>
>
>
>


-- 
@matthewadams12
mailto:matthew at matthewadams.me
skype:matthewadams12
yahoo:matthewadams
aol:matthewadams12
google-talk:matthewadams12 at gmail.com
msn:matthew at matthewadams.me
http://matthewadams.me
http://www.linkedin.com/in/matthewadams


More information about the lambda-dev mailing list