[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part)

Nick Coghlan wrote:
> That's a performance argument, not a readability one (as if you don't
> care about performance, you can just repeat the subexpression).

Repeated subexpressions can be a readability issue too, since you
have to examine them to notice they are actually the same. They
also provide an opportunity to make the error of not making them
the same when they should be, and add the maintenance burden
of ensuring they stay the same when changes are made.