`restricted` member variables

forkit forkit at gmail.com
Wed Jun 22 08:28:42 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".

So your agrument then, is less abstract data type cohesion and 
greater coupling will improve OO software engineering?



More information about the Digitalmars-d mailing list