Re:Wikileaks To Leak 5000 Open Source Java Projects
by MartinCron on Wednesday July 28, 2010 @10:10PM
(#1556367)
Sure, the private access modifier doesn't strictly "enforce" encapsulation. Perhaps the term should be "language supported".
I guess, for me, that the point of private is to clearly communicate the intent of the interface (small "i" interface) of a type. That intent is generally "don't use this, use this other part instead" or "if you couple, to this, it may break on you".
There are other ways of expressing that intent, I just really like having the compiler help me and my collaborators from making stupid mistakes.
I guess, for me, that the point of private is to clearly communicate the intent of the interface (small "i" interface) of a type. That intent is generally "don't use this, use this other part instead" or "if you couple, to this, it may break on you".
There are other ways of expressing that intent, I just really like having the compiler help me and my collaborators from making stupid mistakes.