github at esdiscuss.org (2013-07-12T02:26:56.540Z)
Andy Wingo wrote: > Beyond the scoping error of "next", this desugaring uses `let` > expressions, which AFAICS are not in the spec and have not been > discussed in a few years. Are they actually still a thing? Just a straw-spec device, not proposed for ES6 or 7.
Just a straw-spec device, not proposed for ES6 or 7. /be Andy Wingo wrote: > Hi again, > > On Mon 29 Apr 2013 17:37, Andy Wingo<wingo at igalia.com> writes: > >> let (g = EXPR) { >> let received = void 0, send = true; >> while (true) { >> let next = send ? g.send(received) : g.throw(received); >> if (next.done) >> break; >> try { >> received = yield next.value; // *** >> send = true; >> } catch (e) { >> received = e; >> send = false; >> } >> } >> next.value; >> } > > Beyond the scoping error of "next", this desugaring uses let > expressions, which AFAICS are not in the spec and have not been > discussed in a few years. Are they actually still a thing? > > Andy > _______________________________________________ > es-discuss mailing list > es-discuss at mozilla.org > https://mail.mozilla.org/listinfo/es-discuss >