[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua to ECMAscript static compiler (or translator)
- From: Axel Kittenberger <axkibe@...>
- Date: Thu, 17 Nov 2011 12:28:01 +0100
Javascript 1.7 (Mozilla) has generators which is eventually the same
thing as coroutines (just a tad more ugly to look at :-), but you are
restricting yourself to Mozilla/Spidermonkey then.
"ECMAScript Harmony" plans to have generators
http://wiki.ecmascript.org/doku.php?id=harmony:proposals
But who knows if this is going to be a consensus or a drama like ECMAScript 1.4
The same goes for 'let' which ought to provide proper lexical scoping.
Available now in Mozilla/Spidermonkey only, might be in a future
ECMAScript, might also be not.