lambda syntax tutorial (3. Defender Methods)
Brian Goetz
brian.goetz at oracle.com
Thu Aug 5 18:11:47 PDT 2010
> To be consistent with Javadoc and Method References I would suggest:
>
> extension List<T> map(Mapper<T> r) default Collections#<T>listMapper;
Ah, but that would only expose another inconsistency, which would surely
result in the following question: "why can I use a method reference but not a
lambda expression?"
> IE use a # instead of a . so that it is clear that it is a literal
> reference to a method and not a method call (as well as the
> consistency reason already mentioned).
More information about the lambda-dev
mailing list