Is defining get/set methods for every field overkill?

Sergey kornburn at yandex.ru
Tue Nov 22 10:10:48 UTC 2022


On Tuesday, 22 November 2022 at 03:04:03 UTC, []() {}() wrote:
> On Tuesday, 22 November 2022 at 02:16:16 UTC, []() {}() wrote:
>>
>
> nevermind ;-)  .. seems clear nobody wants something like this 
> in D.
>
> https://forum.dlang.org/post/kbl20f$2np9$1@digitalmars.com
>
> and... 20 years later.... ... .. .

Based on this (not too old) post the idea remains the same and 
approved by Walter’s experience:
https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/
I saw some posts at forum about private-class-scope, but 
community of core-D is fine with module-unit approach I think.


More information about the Digitalmars-d-learn mailing list