Is the explicit mutation policy too aggressive? #24733
gchumillas
started this conversation in
General
Replies: 1 comment
-
The guess is this: Sooner or later, we'll need to change some private property of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder if the following change might mitigate a couple of problems derived from the explicit mutation policy:
The idea is to mark the "receiver" as mutable only when some of its public properties are mutated. This may mitigate the following problems:
The idea is to recognize that there's no magic formula for ensuring software security without paying a price for it. And that explicit mutability is just one more tool.
Beta Was this translation helpful? Give feedback.
All reactions