D Community Conversations: Walter Bright on the Origins of D Part 2

ItIsEncapsulatedOrItisNot ItIsEncapsulatedOrItisNot at gmail.com
Fri Oct 14 08:42:57 UTC 2022


On Thursday, 13 October 2022 at 01:33:54 UTC, Ali Çehreli wrote:
> On 10/12/22 17:52, ItIsEncapsulatedOrItisNot wrote:
> > On Thursday, 13 October 2022 at 00:46:09 UTC,
> ItIsEncapsulatedOrItisNot
> > wrote:
>
> Creative new name. However, although access rights are related 
> to encapsulation, they don't provide it. Encapsulation is 
> encapsulation.
>
> > My programs are now clearer than ever, has less bugs, and
> still work,
> > just fine.
>
> If you removed all private keywords from your programs 
> absolutely nothing would change.
>
> Ali

I don't think of 'private' as an 'access right'.

I think of it as a programmer assertion - in that it asserts the 
scope that I want to apply to that property of the class (and to 
which i expect the compiler to uphold that assertion).

Of course I don't need this in functions, since scope is always 
local to the function (except when its not).


More information about the Digitalmars-d-announce mailing list