[Python-Dev] (name := expression) doesn't fit the narrative of PEP 20
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 26 01:22:58 EDT 2018
Łukasz Langa wrote:
> What was its own assignment before
> now is part of the logic test. This saves on vertical whitespace but makes
> parsing and understanding logic tests harder.
Another way to say this is that expressions are no longer
restricted to being trees, but can be general DAGs, which
require more mental effort to understand.
Hmmm, maybe they should be called "spaghetti expressions". :-)
--
Greg
More information about the Python-Dev
mailing list