Straw man section 7: Method References

Paul Benedict pbenedict at apache.org
Mon Dec 14 06:26:10 PST 2009


David,

I find your suggestion interesting. If # helps grab a method literal,
what syntax can grab a field literal? Do you have anything in mind?

Paul

On Mon, Dec 14, 2009 at 6:30 AM, David Goodenough
<david.goodenough at linkchoose.co.uk> wrote:
> I realise that this section is TBD, but can I ask whether Field References
> could also be considered at the same time.  I realise that they are not really
> part of closures, but once the basic syntax is in place for Method References
> then Field References are a simple extension.
>
> I can outline why I think it important to do Field References, but if you
> regard it as totally out of court there is little point in starting.  I would
> however be very keen to help if this could be added, and I believe that
> it would benefit Java to add this functionality. It is not a large change,
> there are no JVM changes required and only one extra library
> class required of which I already have a prototype.
>
> David
>
>


More information about the lambda-dev mailing list