Extending D's support for object-oriented design with private(this)

Kagamin spam at here.lot
Sat Apr 27 10:22:11 UTC 2024


On Saturday, 27 April 2024 at 08:29:46 UTC, Arafel wrote:
> And "just don't do it" seems quite a bit like "you're holding 
> it wrong". That's just enforcing by convention, and at that 
> point why not go with the python "private" way? Just tell 
> people that they shouldn't do it, and done.

In OOP world you enforce contracts with interfaces, not with 
access attributes. Do you really come from java?


More information about the dip.ideas mailing list