Trust final fields in records

Kasper Nielsen kasperni at
Tue Jun 16 10:08:28 UTC 2020

> One alternative might be an implicit static method parallel to the
> constructor that
> sets all field values, but does not execute any explicit constructor(s),
> if present.
> Sort of a 'raw' constructor.

Not having a 'raw' constructor that breaks encapsulation is a feature,
not an oversight [1].



More information about the valhalla-dev mailing list