Reviewing feedback on patterns in switch
Remi Forax
forax at univ-mlv.fr
Fri Jan 28 12:40:49 UTC 2022
----- Original Message -----
> From: "mark" <mark at io7m.com>
> To: "Brian Goetz" <brian.goetz at oracle.com>
> Cc: "amber-spec-experts" <amber-spec-experts at openjdk.java.net>
> Sent: Friday, January 28, 2022 12:43:55 PM
> Subject: Re: Reviewing feedback on patterns in switch
> On 2022-01-25T19:46:09 +0000
> Brian Goetz <brian.goetz at oracle.com> wrote:
>
>> We’ve previewed patterns in switch for two rounds, and have received some
>> feedback. Overall, things work quite well, but there were a few items which
>> received some nontrivial feedback, and I’m prepared to suggest some changes
>> based on them. I’ll summarize them here and create a new thread for each with
>> a more detailed description.
>>
>> I’ll make a call for additional items a little later; for now, let’s focus on
>> these items before adding new things (or reopening old ones.)
>>
>> 1. Treatment of total patterns in switch / instanceof
>>
>> 2. Positioning of guards
>>
>> 3. Type refinements for GADTs
>>
>> 4. Diamond for type patterns (and record patterns)
>
> Hello!
>
> I'm a little late to the party, as ever, but is there a specific build I
> should be looking at so that I can get a better idea of what the current
> state of things are?
Hi Mark,
the last jdk18 build or any new jdk19 builds will do.
>
> --
> Mark Raynsford | https://www.io7m.com
Rémi
More information about the amber-spec-observers
mailing list