3 ms·
That’s not encapsulation, that’s just an ugly hack. Somewhat related, it has been shown that a language with public/private visibility modifiers is more expres
by kaba0 3y ago
That’s not encapsulation, that’s just an ugly hack.
Somewhat related, it has been shown that a language with public/private visibility modifiers is more expressive than one without (that is, it can’t be locally replaced by another expression that results in the same program).
- augustk 3y ago> That’s not encapsulation, that’s just an ugly hack. Call it what you want but it works well. Declaring a variable or function as static corresponds to "private". I honestly don't understand what you mean by "locally replaced by another expression", I think you'll need to exemplify.