- Original Message -
> From: "daniel smith"
> To: "Remi Forax"
> Cc: "Maurizio Cimadamore" , "Brian Goetz"
> ,
> "valhalla-spec-experts"
> Sent: Monday, June 6, 2022 7:56:40 PM
> Subject: Re: Anonymou
> On Jun 4, 2022, at 3:33 AM, fo...@univ-mlv.fr wrote:
>
> there is a lot of libraries that have APIs using interfaces that are
> implemented by anonymous classes, the collection API is one of them, fluent
> loggers (anything fluent in fact) is another, and those will benefit to have
> better
> From: "Maurizio Cimadamore"
> To: "Brian Goetz" , "Remi Forax"
> Cc: "daniel smith" , "valhalla-spec-experts"
>
> Sent: Friday, June 3, 2022 8:18:44 PM
> Subject: Re: Anonymous value classes
> And `var` ?
> (b
uot;valhalla-spec-experts"
*Sent: *Friday, June 3, 2022 6:21:26 PM
*Subject: *Re: Anonymous value classes
There is no chance to get any calling-convention optimization
here, since the concrete class name will not show up in any
method descriptor (or preload attribute). The
On 6/3/2022 1:39 PM, Remi Forax wrote:
*From: *"Brian Goetz"
*To: *"daniel smith" ,
"valhalla-spec-experts"
*Sent: *Friday, June 3, 2022 6:21:26 PM
*Subject
- Original Message -
> From: "daniel smith"
> To: "valhalla-spec-experts"
> Sent: Friday, June 3, 2022 6:18:42 PM
> Subject: Re: Anonymous value classes
>> On Jun 3, 2022, at 10:15 AM, Dan Smith wrote:
>>
>> Our javac prototype has
> From: "Brian Goetz"
> To: "daniel smith" , "valhalla-spec-experts"
>
> Sent: Friday, June 3, 2022 6:21:26 PM
> Subject: Re: Anonymous value classes
> There is no chance to get any calling-convention optimization here, since the
> concrete c
There is no chance to get any calling-convention optimization here,
since the concrete class name will not show up in any method descriptor
(or preload attribute). There is no chance to get any heap flattening
here, since the concrete class name will not show up in any field
descriptor or
> On Jun 3, 2022, at 10:15 AM, Dan Smith 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
Our javac prototype has long included support for a 'value' keyword after 'new'
to indicate that an anonymous class is a value class:
Runnable r = new value Runnable() {
public void run() { x.foo(); }
};
Is this something we'd like to preserve as a language feature?
Arguments for:
-
10 matches
Mail list logo