Is defining get/set methods for every field overkill?
Sergey
kornburn at yandex.ru
Sat Nov 19 20:07:22 UTC 2022
On Saturday, 19 November 2022 at 04:27:14 UTC, []() {}() wrote:
> By making your class member variables public, it is not clear
> whether you forgot that you needed to validate incoming and
> outgoing values, or whether you don't need to do this (not
> ever).
>
> If you did it because of the former, you're fired ;-)
>
> If you did it because of the latter, you're also fired ;-)
Functional programming developers be like: "meh" :)
More information about the Digitalmars-d-learn
mailing list