MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1xfxtnx/i_love_python/19rp29xnh585h/
r/programminghorror • u/nakurtag • Oct 26 '26
81 comments sorted by
View all comments
Show parent comment
29
The default value is fine as long as it is not a mutable object. So things like integers and strings are completely fine to use as default values.
-14 u/ZylonBane Oct 26 '26 Yes, we're all aware. Nobody has disputed that.
-14
Yes, we're all aware. Nobody has disputed that.
View all comments
Show parent comment
29
u/notjfd Oct 26 '26
The default value is fine as long as it is not a mutable object. So things like integers and strings are completely fine to use as default values.