I agree that all of these pattern matches should be expressible.
Under the current plan, we get there (at least) by:
- RED is a constant pattern (well, Color.RED is a constant pattern,
anyway.)
- Color(var red, _, _) is a deconstruction pattern, with an explicit
deconstructor
The feature yo
On Jan 2, 2020, at 1:08 PM, Remi Forax wrote:
>
> Given that records are named tuples, does it means that a deconstructor is
> just a classical method with no parameter and a record as return type ?
Brian has given a good answer to this from the POV of language development,
and I agree with it.