News for hackers. Stuff that matters.
Re:Koa – Next-generation web framework for Node.js by Sheepshow on Thursday December 19, 2013 @12:50PM (#6936295)
Not sure I understand the semantics. I'm passed what looks like a continuation, but instead of calling it, I yield it?

What other values can I yield, and why would I want to?

Alternatively, couldn't the `next` object just be a plain continuation?

Re:Koa – Next-generation web framework for Node.js by yojimbo311 on Thursday December 19, 2013 @02:33PM (#6937206)
zimbatm's link to http://wiki.ecmascript.org/doku.php?id=harmony:generators was helpful here. https://wiki.python.org/moin/Generators seems to also have some useful background on where the semantics are coming from.