Method references in annotations?
neal at gafter.com
Sun Aug 14 13:46:39 PDT 2011
I am not sure what you're trying to say in this message. Method.invoke is a
method. SAMs are interface types. I don't know what it means to treat a
method as a type. Do you mean to suggest treating java.lang.Method as a
SAM? It has little in common with them.
On Saturday, August 13, 2011, Jason Schroeder <shrode at subnature.com> wrote:
> I am trying to implement something so there is something which to
> refer amongst the interested parties.
> However, I am guessing that making #Person.getLastName a new kind of
> literal is NOT the initial way to make a pitch. A new literal needs
> context in a language, or at least arguments why some operations over
> literals exist (or do not exist).
> I perceive a more expansive implementation (to be possibly rejected)
> should be made for discussion. Namely, as a start, to make
> Method.invoke behave like a special SAM, a SAM that trivially
> implements any and all methods. Then perhaps, #Person.getLastName is
> not a new literal for Method, but is boxed as a Method.
More information about the lambda-dev