----- Original Message ----- > From: "daniel smith" <daniel.sm...@oracle.com> > To: "valhalla-spec-experts" <valhalla-spec-experts@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.sm...@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