|
|
|
|
|
by xboxnolifes
384 days ago
|
|
> Most data structures have invariants that must hold for the data structure to behave correctly. If users can directly read and write members, there's no way for the public APIs to guarantee that they will uphold their documented API behaviors. You can, just not in the "strictly technical" sense. You add a "warranty void if these fields are touched" documentation string. |
|