4 ms·
You can do pretty much anything with default arguments, rather than overridable class methods. First class functions make this very flexible. Sometimes this is
by wisty 14y ago
You can do pretty much anything with default arguments, rather than overridable class methods. First class functions make this very flexible.
Sometimes this is a little inconvenient. I think the sign you really need a class is when you are sending in something called "object_type", and a dict of "object_type -> function".