|
|
|
|
|
by lolinder
1290 days ago
|
|
This is pretty common when adding immutability to a language that wasn't designed around it. Whether it's JavaScript's `const` or Java's `final`, languages almost always add shallow immutability rather than deep. My sense is that it's quite difficult to add deep immutability in later. Rust is the main exception I'm aware of, and it had deep immutability from the get-go. |
|