Re:Python Design Patterns (2018)
by valenterry on Tuesday March 15, 2022 @04:28AM
(#30682890)
Different functions can expect different arguments. For numbers, they are all the same. That's a difference!
Well, you can argue that there are also different numbers and you can do devision only by some of them. But in fact, if you were to separate them and wrap them to do things differently, then this would get closer to the strategy pattern.
Well, you can argue that there are also different numbers and you can do devision only by some of them. But in fact, if you were to separate them and wrap them to do things differently, then this would get closer to the strategy pattern.