Syntax for method references

Serge Boulay serge.boulay at gmail.com
Wed Oct 26 12:39:13 PDT 2011


I liked the syntax shown at the 2011 JVM language summit

Predicate<> p = String->isEmpty

http://www.wiki.jvmlangsummit.com/images/a/a1/2011_Goetz_Extension_Slides.pdf

On Wed, Oct 26, 2011 at 3:17 PM, Bob Foster <bobfoster at gmail.com> wrote:

> On Tue, 25 Oct 2011 15:01:21 -0700 (whew!) Brian Goetz wrote:
>
> Oh, good. The dreaded :: from C++. :)
>
> Bob
>
> > This is the current front-runner.
>
> > On Oct 25, 2011, at 9:26 AM, Stephen Colebourne wrote:
> >> Is this now decided? Or just an experiment?
> >>
> http://www.ibm.com/developerworks/java/library/j-ldn3/index.html?ca=drs-
> >>
> >> Collections.sortBy(people, Person::getLastName);
> >> people.sortBy(Person::getLastName);
> >>
> >> Stephen
> >>
>
>


More information about the lambda-dev mailing list