Re:Python's Mutable Default Problem
by sjs on Sunday February 20, 2011 @08:05PM
(#2243775)
Because that can be said more succinctly. It is even easier to read as there is less to read, which I realize is mostly subjective.
[ Parent
| on HN ]
I'm pretty sure this is the same argument used to make Perl a bad guy.
I disagree, but we've gotten a bit off topic.
I think Python's behaviour is confusing and basically never what anyone actually wants. Regardless of whether or not you can use other params in defaults, the defaults should be evaluated on each call.