2 ms·
In real life, you cannot depend on encapsulation or especially documentation. Interesting behaviour is left undefined or not documented. (This including such h
by AstralStorm 9y ago
In real life, you cannot depend on encapsulation or especially documentation. Interesting behaviour is left undefined or not documented. (This including such hairy things to test like thread safety and reentrant behaviour.)
Like C++ itself it allows implementing freedom.
The result is that you get to actually test any assumptions you make.