I do like that feature, but, aren't statics the only things that are
*already* easy to make lazy (holder class)?

This pattern should already be evangelized heavily today for anyone with
Java 8 and up.


On Tue, Oct 9, 2018 at 11:50 AM <[email protected]> wrote:

>
>
> ------------------------------
>
> *De: *"Kevin Bourrillion" <[email protected]>
> *À: *"daniel smith" <[email protected]>
> *Cc: *"Remi Forax" <[email protected]>, "amber-spec-experts" <
> [email protected]>
> *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 <[email protected]> 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
>
>

-- 
Kevin Bourrillion | Java Librarian | Google, Inc. | [email protected]

Reply via email to