2 ms·
The article talks about having too many of these, period, which I certainly agree with: it's a bad sign. But if they must exist, you should have a facility for
by makecheck 18y ago
The article talks about having too many of these, period, which I certainly agree with: it's a bad sign.
But if they must exist, you should have a facility for doing them in an automatic way. If you don't, you are better off keeping data members public.
Of course, I really like how Python properties handle this, because the syntax is the same as if the accessor methods never existed.