3 ms·
> Are there special cases or arguments only used by a fraction of callers My thought is special case arguments are fine for internal calls but are lousy for ex
by hinkley 6y ago
> Are there special cases or arguments only used by a fraction of callers
My thought is special case arguments are fine for internal calls but are lousy for external ones.
If you have two public functions with the same meaning but slightly different circumstances, having a protected method that handles both via an extra argument makes sense.
Consequently, the only way to end up with five conditional arguments on that function is to have an enormous number of public functions all doing more or less the same thing. Somewhere around 2, alarm bells should have been going off in your head, asking why you/we have done this and perhaps now is a good time to stop?