Straw man section 7: Method References

Mark Mahieu markmahieu at googlemail.com
Mon Dec 14 07:17:45 PST 2009


Before diving into syntax, I think I might first like to know what a field literal is supposed to be in this context - for starters, what type does it have (is it the same as in FCM, or something else?), and how does it relate to lambdas?

Mark


On 14 Dec 2009, at 14:26, Paul Benedict wrote:

> 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