`restricted` member variables

forkit forkit at gmail.com
Wed Jun 22 09:33:53 UTC 2022


On Wednesday, 22 June 2022 at 08:00:41 UTC, claptrap wrote:
>
> Lets be honest there's no data that adding "class private" 
> would prevent bugs or cure cancer. Just a couple of people 
> waving their arms because somebody told them the world aint 
> flat like the good book of OO told them and now they cant cope.
>
> The nearest thing to data we have is that the vast majority of 
> experienced D users dont give two hoots about it and the only 
> people who do get upset are the occasional newbie every 6 
> months or so.
>
> Maybe go through github / bugzilla whatever, find some **real** 
> examples of bugs it would have prevented. I think you'll have a 
> tough time, because if it did help prevent bugs more people 
> would be like "oh yeah that would be really useful".

Controlling the Use of Information
------------------------------------
"... In this section we discuss the benefits that accrue
from this limitation: the programs which result are more
modular, and easier to understand, modify, maintain and
prove correct."

Liskov and Zilles, 1974

https://dl.acm.org/doi/pdf/10.1145/942572.807045




More information about the Digitalmars-d mailing list