4 ms·
Funnily enough, I don't think the quoted comment makes a charitable interpretation of the article. > Why do you consider Martin's definition of side-effect, wh
by nemetroid 5y ago
Funnily enough, I don't think the quoted comment makes a charitable interpretation of the article.
> Why do you consider Martin's definition of side-effect, which speaks of 'global state' and 'unexpected changes' to include changes to private members of the class in functions that document those changes via their signature?
In Martin's definition, the first example of a side effect is "unexpected changes to the variables of its own class". Perhaps the argument being made here is that the changes aren't unexpected, but in that case, the article is very clear in that it considers them unexpected.