|
|
|
|
|
by Gibbon1
2615 days ago
|
|
> but they undermine the design goal because they more or less directly expose internal state to the public world. This has always been my problem with getters and setters. It's a way of either pretending you are not or putting bandaids on the fact that you're messing with the objects internal state. For objects with dynamic state this is really bad. The result is racy or brittle. |
|