re: PHP Typed Properties: Think Twice. VIEW POST

re: Encapsulation Is Not Information Hiding

An excerpt from the article:

In the glossary of Design Patterns, Gamma et al., encapsulation is defined as "The result of hiding a representation and implementation in an object..."
So such luminaries as Gamma et al. and the designers of C++ (and Java) are wrong!?
Clearly that there are two definitions of encapsulation, but both valid. It's common for the same word to have different meanings in different communities or contexts. It is not meaningful to say one definition is correct and the other wrong.

code of conduct - report abuse