Anonymous value classes
Remi Forax
forax at univ-mlv.fr
Fri Jun 3 17:43:33 UTC 2022
----- Original Message -----
> From: "daniel smith" <daniel.smith at oracle.com>
> To: "valhalla-spec-experts" <valhalla-spec-experts at openjdk.java.net>
> Sent: Friday, June 3, 2022 6:18:42 PM
> Subject: Re: Anonymous value classes
>> On Jun 3, 2022, at 10:15 AM, Dan Smith <daniel.smith at oracle.com> wrote:
>>
>> Our javac prototype has long included support for a 'value' keyword after 'new'
>> to indicate that an anonymous class is a value class
>
> (I see Remi brought this up in the list in July 2018, which is probably what
> inspired the prototype implementation. There wasn't really any followup
> discussion.)
I need it when trying to implement List.of()/Map.of() with few elements using value classes.
Rémi
More information about the valhalla-spec-observers
mailing list