News for hackers. Stuff that matters.
Re:Python's Mutable Default Problem by chc on Sunday February 20, 2011 @04:38PM (#2243178)
That is code is logically convoluted — that's one reason not to love it. Why do you think is the more straightforward statement, just in general?

- "Let B be one greater than A unless otherwise specified."

- "We have no default value for B. If B has a value, then let B be equal to that value. If B does not have a value, then let B be one greater than A."

There are no comments on this comment yet.