`this` in concise method bodies

John Rose john.r.rose at oracle.com
Sat Oct 13 04:56:26 UTC 2018


On Oct 12, 2018, at 9:47 PM, John Rose <john.r.rose at oracle.com> wrote:
> 
> Delegate

P.S.  In the prehistory of Java there were serious proposals to support
delegation of an object's method to some "friend" (a field).  I think
Ken Arnold was the proponent, and I also think at least some of the
original JLS authors took it seriously.  But it was too much language
change for just one software reuse pattern, even a venerable one.

The CMB proposal seems to fulfills this old RFE completely, and does
much more besides, since it handles Concepts and Prototypes also.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20181012/72236c6e/attachment.html>


More information about the amber-spec-experts mailing list