Method references in annotations?
Jason Schroeder
shrode at subnature.com
Sat Aug 13 14:21:44 PDT 2011
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
mailing list