4 ms·
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.
by sjs 16y ago
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.
- crystalis 16y agoI'm pretty sure this is the same argument used to make Perl a bad guy.
- sjs 16y agoI 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.