Or maybe you mean something else; if so, please share!
The current proposal is more about matching and extracting the first
arguments
It is really about matching *the whole array*. Pattern matching is
about destructuring. Arrays are part of the language. They have
structure. We
> From: "Brian Goetz"
> To: "Remi Forax"
> Cc: "amber-spec-experts"
> Sent: Thursday, May 19, 2022 3:03:55 PM
> Subject: Re: Collections patterns
>> We may want to extract sub-parts of the array / collections by example, and i
>> wou
We may want to extract sub-parts of the array / collections by
example, and i would prefer to have the same semantics and a similar
syntax.
This is pretty vague, so I'll have to guess about what you might mean.
Maybe you mean: "I want to match a list if it contains the a subsequence
that
> From: "Brian Goetz"
> To: "Remi Forax"
> Cc: "amber-spec-experts"
> Sent: Wednesday, May 18, 2022 11:08:41 PM
> Subject: Re: Pattern matching: next steps after JEP 405
>> Inference is also something we will need for pattern assignment
>> Box<>(var s) = box;
> Yes, it would work the same in