|
|
|
|
|
by ryanseys
1290 days ago
|
|
> However there is one caveat. If some of the data members are of a mutable class, Data does no additional immutability enforcement. Seems like an area of concern / gotchas. Either restrict Data to not allow mutable nested objects, or provide immutable versions of stdlib object types as well and enforce that those types are used. Yet another Rubocop-that-should-just-be-built-into-the-language coming in 3...2...1... |
|
Rust is the main exception I'm aware of, and it had deep immutability from the get-go.