New JEP: Concise Method Bodies
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Sep 20 20:10:59 UTC 2018
On 20/09/18 20:05, Kevin Bourrillion wrote:
> In this case, I think the `=/` /form /might/ also clear that bar
> because of the automatic parameter pass-through. But I cannot
> currently see how the `->` form comes close to clearing it.
Not sure I get it - surely every getter might benefit form this?
int getX() -> x
instead of
int getX() { return x; }
You could claim that the gain is minimal, but I'd suspect there's lots
of applicable cases?
Maurizio
More information about the amber-spec-observers
mailing list