4 ms·
> There's something in the PEP about programmers wanting to save lines of code. Really? The code at the microprocessor level is the same. No, they don't want t
by speedplane 7y ago
> There's something in the PEP about programmers wanting to save lines of code. Really? The code at the microprocessor level is the same.
No, they don't want to save lines of code, they want to save time to understand code. Disallowing assignments during expression is one way to advance that.
But I'm not really understanding your bigger point here. Who cares about such minutia? Is "x++" versus "x += 1" versus "x = x + 1" really all that different to the programmer? When have you proudly used the shorter versions and actually made code better in some marketable way?
These programmer purity metrics are silly and counter-productive, we should instead focus on programmer quality and speed to get things done.