Data classes

Remi Forax forax at
Thu Nov 2 13:34:58 UTC 2017

Hi Brian,
there is an axis which is not mentioned in this document, the nullablility of the fields, it's somewhat like 'final' because fields should not non nullable by default, it asks the compiler to add codes in the constructors (the calls to requireNonNull) so it can have a not so simple interaction with the call to default.

I will post several other mails on each sections later.


----- Mail original -----
> De: "Brian Goetz" <brian.goetz at>
> À: "amber-spec-experts" <amber-spec-experts at>
> Envoyé: Mercredi 1 Novembre 2017 19:53:40
> Objet: Data classes

> At the following URL, please find a writeup containing our current
> thoughts on Data Classes for Java:
> Comments welcome!
> We'll be making a prototype available soon for folks to play with.

More information about the amber-spec-experts mailing list