New JEP: Concise Method Bodies
Brian Goetz
brian.goetz at oracle.com
Tue Oct 9 19:42:09 UTC 2018
"Need" is a strange word here. Using CMB with a static final Comparator
is great; combining it with lazy is even greater, but surely not a
requirement for moving forward. But yes, the two features will interact
nicely!
On 10/9/2018 2:50 PM, forax at univ-mlv.fr wrote:
>
>
> ------------------------------------------------------------------------
>
> *De: *"Kevin Bourrillion" <kevinb at google.com>
> *À: *"daniel smith" <daniel.smith at oracle.com>
> *Cc: *"Remi Forax" <forax at univ-mlv.fr>, "amber-spec-experts"
> <amber-spec-experts at openjdk.java.net>
> *Envoyé: *Mardi 9 Octobre 2018 20:48:10
> *Objet: *Re: New JEP: Concise Method Bodies
>
> On Tue, Oct 9, 2018 at 11:43 AM Dan Smith <daniel.smith at oracle.com
> <mailto:daniel.smith at oracle.com>> wrote:
>
> We have a rich API for building Comparators. I would expect
> most non-legacy implementations of Comparable to implement
> their 'compareTo' method by delegating to a Comparator.
>
>
> +100
> To me, this pattern is the strongest use case for the entire feature.
>
>
> We need the lazy static final feature too.
>
> Rémi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20181009/c1f996e6/attachment.html>
More information about the amber-spec-experts
mailing list