Although still a [draft](http://wiki.ecmascript.org/doku.php?id=harmony:generators#syntax), there seems to be an overwhelming consensus regarding the syntax for generator functions in ES6/Harmony.
Currently, code like this...
```
return function * renderView(next) {
this.render = views(path, opts);
yield next;
}
```
... causes several red squiggles in NTVS.
[koa](https://github.com/koajs/koa), the sequel to the "express" web application framework, which uses generators, already has a considerable momentum.
Currently, code like this...
```
return function * renderView(next) {
this.render = views(path, opts);
yield next;
}
```
... causes several red squiggles in NTVS.
[koa](https://github.com/koajs/koa), the sequel to the "express" web application framework, which uses generators, already has a considerable momentum.