A peek at the roadmap for pattern matching and more
Remi Forax
forax at univ-mlv.fr
Wed Aug 12 22:00:56 UTC 2020
> De: "Brian Goetz" <brian.goetz at oracle.com>
> À: "amber-spec-experts" <amber-spec-experts at openjdk.java.net>
> Envoyé: Mercredi 12 Août 2020 22:44:04
> Objet: A peek at the roadmap for pattern matching and more
> Several folks have asked that I sketch out a little more of the roadmap for
> pattern matching, so that we can better evaluate the features being discussed
> now (since, for example, the semantics of pattern matching are heavily
> influenced by nested patterns.)
> Reconstructors:
> [
> https://github.com/openjdk/amber-docs/blob/master/eg-drafts/reconstruction-records-and-classes.md
> |
> https://github.com/openjdk/amber-docs/blob/master/eg-drafts/reconstruction-records-and-classes.md
> ]
> This one addresses the challenge of "mutating" immutable objects such as records
> and inline classes, and builds on deconstructors.
There is nothing on the meaning of "this" in the block of with, i believe that like a constructor, "this" should be a reference to the instance on which with is called and be final ?
> (There are some teasers for related features, mostly to put these in context,
> but I don't want to get distracted on those features until these are nailed
> down, so take them as merely context.)
Rémi
More information about the amber-spec-observers
mailing list