Is defining get/set methods for every field overkill?
Ali Çehreli
acehreli at yahoo.com
Sat Nov 19 19:54:59 UTC 2022
On 11/19/22 01:05, [] () {} () wrote:
> All this because some programmer wanted to save a few key strokes, or
> did not anticipate change, or did not anticipate the need to ensure data
> is valid before assigning it, or returning it.
>
> So no. It's not overkill. It's called software engineering.
I disagree. Engineering is about applying different solutions to
different problems. Blindly following guidelines whether it is fit for
purpose would be dogmatic, not pragmatic.
Ali
More information about the Digitalmars-d-learn
mailing list