PEP 308: A PEP Writer's Experience - PRO

Andrew Koenig ark at research.att.com
Sun Feb 9 21:42:53 EST 2003


Roy> I'm a fan of refactoring (but not a zealot, in the XP-ish
Roy> "refactor mercilessly" sense).  It's temping to want to factor
Roy> the "result =" out of the above and end up with "result = ternary
Roy> involving x>y, x, and y".  There's both a cognitive advantage
Roy> (you only have to read and understand it once) and a coding
Roy> advantage (if you only type it once, there's no chance of
Roy> introducing inconsistancy).

I was going to say exactly the same thing before I saw this note.

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list