4 ms·
Yes, but you move the logic for deciding which branch to take to an underlying function. It pollutes the parent function less, but results in more overall funct
by rlayton2 6y ago
Yes, but you move the logic for deciding which branch to take to an underlying function. It pollutes the parent function less, but results in more overall functions for places to hide.
Also, if the logic gets more complicated than just an if statement (if Permision... and date < cutoffdate: etc) you don't further pollute the parent function.