Proposed new syntax

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Aug 14 18:26:55 EDT 2017


Ben Finney wrote:
> That the comprehension
> syntax *does not* necessarily connote a procedural loop, but instead can
> quite reasonably be interpreted as its designer intended, a single
> conceptual operation.

To put it another way: Consider that a comprehension is an
expression, and I think most people would agree that relying
on order of evaluation in an expression is a very bad idea,
since it hurts readability and is prone to subtle bugs.

-- 
Greg



More information about the Python-list mailing list