> On Aug 27, 2026, at 4:09 AM, [email protected] wrote:
> 
> Exactly one identity
> record survives the conversion anywhere in its own modules -- a bootstrap
> dependency graph whose Map components are mutated in place, so it cannot be a
> value class.

FWIW, this also seems like a questionable use of records. Both records and 
value classes are intended to model a fixed piece of data. If the data is 
stateful, a general-purpose class seems like a better fit.

(Both records and value classes *could* make sense to refer to a mutable data 
structure if (i) the data structure is done mutating at creation time, and so 
mutation is not part of the API; or (ii) the data being modeled is a reference 
into the data structure—something like a cursor—and so any mutation of the data 
structure is an external side effect, not a change in the data being modeled.)

Reply via email to