Erik Arvidsson (2014-01-27T21:17:50.000Z)
domenic at domenicdenicola.com (2014-01-30T15:51:39.677Z)
On Jan 27, 2014 2:09 PM, "David Herman" <dherman at mozilla.com> wrote: > > I'd like to suggest another sense in which you may have gone down a bad path: you're assuming that await is paired with function*, but it could instead be (like C#) paired with its own async-function syntactic form. Let's say for the sake of argument that async is just a keyword that takes a function form: > > ```js > async function sizeOfZombocom() { > let all = await download("http://zombo.com"); > return all.length; > } > ``` This is similar to way we implemented async in Traceur a few years ago (time flies). A lot of code can be be shared between generators and async functions but you do not want to implement async using generators.