2 ms·
The mutable default is sometimes useful as a quick way to memoize a function
by fiddlerwoaroof 7y ago
The mutable default is sometimes useful as a quick way to memoize a function
- bjoli 7y agoI would argue that that is an edge case that should be done with decorators. The whole mutable default thing bites everyone at least once, and at best it just means more code to do the same thing.