Extending D's support for object-oriented design with private(this)
Dukc
ajieskola at gmail.com
Sat Apr 27 13:10:08 UTC 2024
On Thursday, 25 April 2024 at 05:37:24 UTC, NotYouAgain wrote:
> This DIP idea, relates to extending D's support for
> object-oriented design - by allowing private visibility to be
> attached to a class member.
>
> The proposal creates no new limitations and no code breakage.
About the idea itself - I don't feel strongly either way. I would
personally likely not use this feature, but it's easy enough to
understand that it wouldn't bother me either if others use it.
I need to stress though, that you need to approach this subject
with utmost diplomacy and humblety. Class-level `private` has
been the very subject of more than one flame war in these forums.
You will quickly become shunned if you're seen as instigating
another one. The disclaimers you included at beginning of your
post hint that you're already aware of that.
In any case, please don't attempt to get your viewpoints through
by arguing with those who disagree. You need to accept that it's
better to agree to disagree, or you won't be taken seriously in a
delicate subject like this.
More information about the dip.ideas
mailing list