[External] : Pattern assignment statements (extracted from: Primitive type patterns and conversions)

Gavin Bierman gavin.bierman at oracle.com
Thu Mar 4 15:09:37 UTC 2021



> On 4 Mar 2021, at 08:44, John Rose <john.r.rose at oracle.com> wrote:
> 
> On Mar 3, 2021, at 11:52 PM, forax at univ-mlv.fr wrote:
>>> 
>>> First, I agree with Brian  that “int data[] = …”
>>> is horrible; we should have only allowed
>>> “int[] data = …” and taken the hit early.
>>> 
>> There is also its big brother
>>  int foo() [] { return null; }
>> which is the epitome of the C-style array declaration allowed in Java.
> 
> Thanks, Remi; that's the stuff of nightmares
> and it's bedtime here.

:-o I had no idea! I see the JLS says "It is very strongly recommended that this syntax is not used in new code.”

Gavin


More information about the amber-spec-experts mailing list