On Nov 28, 2013, at 11:47 AM, Brendan Eich wrote: > On Nov 28, 2013, at 11:24 AM, Allen Wirfs-Brock <al...@wirfs-brock.com> wrote: >> >> The reason it isn't allowed is that the generator object is not yet >> instantiated and active at the point where a default value initializer would >> be evaluated. > > But just to be clear, defaults are evaluated per generator function > invocation. Right?
right, but before the implicit yield at the top of the function body > > This is a fine reason for a static error on yield in parameter default, but, > but to hammer on the virtue of function*, it still does not help with > parsing. Good old * after function does. > > /be > _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss