Is defining get/set methods for every field overkill?

rikki cattermole rikki at cattermole.co.nz
Thu Nov 17 05:57:41 UTC 2022


I wouldn't bother.

They are const, they can't change.

Nothing to protect, nothing to synchronize.


More information about the Digitalmars-d-learn mailing list