yield syntax (diverging from: How would shallow generators compose with lambda?)
Mark S. Miller
erights at google.com
Sun May 17 12:43:08 PDT 2009
On Sun, May 17, 2009 at 11:00 AM, Brendan Eich <brendan at mozilla.com> wrote:
> Analogous to direct vs. indirect eval in ES5 (15.1.2.1.1), there is no
> purely syntactic specification for what Neil proposes. A runtime check is
> required. So I don't see why you are focusing only on syntax here.
I don't follow. What runtime check? For the eval operator, the runtime
check is whether the value of the eval variable is the original global
eval function. It makes no sense to have a corresponding global yield
function value.
--
Cheers,
--MarkM
More information about the es-discuss
mailing list