[Python-ideas] PEP 3156 - Coroutines are more better
Dustin J. Mitchell
dustin at v.igoro.us
Sat Jan 26 19:37:22 CET 2013
On Wed, Jan 23, 2013 at 9:14 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> I think I'm going to wait and see what the coroutine-level features
> of tulip turn out to be like before saying much more.
I think this is pretty smart, actually. Deferreds, futures, promises,
etc. give the programmer a lot of rope. They don't require classical
models of control flow, in particular. That's cool, but tends to lead
to code with subtle bugs.
Coroutines re-introduce just enough structure to put programmers back
in comfortable territory for verifying correctness. This ends up
looking a bit like threads, but with less concern for synchronization
primitives, and virtually-free cloning.
Dustin
More information about the Python-ideas
mailing list