`this` in concise method bodies

Brian Goetz brian.goetz at oracle.com
Sat Oct 13 14:18:38 UTC 2018

It’s not either-or.  

Yes, CMB and local methods interact together very nicely.  If we did local methods, we would surely want CMB for them.  But, the two are orthogonal; we could do either, or both, in either order.  CMB without local methods has more leverage than local methods without CMB, so if we were to do both, the natural order is CMB first (which is, not accidentally, why I proposed it first.)  

Conversely, it we did local methods with CMB, it would be kind of rude to not allow CMB on non-local methods as well.  

> Given that you are comparing concise methods to var statements, i wonder if it's not more an argument for local concise methods as proposed bu Lukas Eder.

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

More information about the amber-spec-experts mailing list