[Python-Dev] async/await in Python; v2

Ethan Furman ethan at stoneleaf.us
Wed Apr 22 22:13:01 CEST 2015


On 04/22, PJ Eby wrote:

> tl;dr: I like the overall ideas but hate the syntax and type
> segregation involved: declaring a function async at the top is OK to
> enable async with/for semantics and await expressions, but the rest
> seems unnecessary and bad for writing robust code.  (e.g. note that
> requiring different syntax means a function must either duplicate code
> or restrict its input types more, and type changes in remote parts of
> the program will propagate syntax changes throughout.)

Agreed.

--
~Ethan~


More information about the Python-Dev mailing list