4 ms·
"If there are multiple versions of a function, consider making a single function with more, possibly defaulted, parameters." I have years avoiding to do this b
by gustavorg 6y ago
"If there are multiple versions of a function, consider making a single function with more, possibly defaulted, parameters."
I have years avoiding to do this because there is a known code smell that happens when a function execution changes based on parameters. My personal rule is to be splendid with functions.