'function *' is not mandatory

Brendan Eich brendan at mozilla.com
Sat Aug 31 12:52:36 PDT 2013

> Yuichi Nishiwaki <mailto:yuichi.nishiwaki at gmail.com>
> August 31, 2013 12:45 PM
> ES5 specifies "yield" as a reserved keyword, right?

Wrong, only ES5 strict reserved "yield".

> So there should be
> no need to make it contextual.
There is; when we first tried reserving "yield" in 2006, we had to put 
it behind opt-in versioning because content used "yield" as an 
unqualified identifier. IIRC it's still used.

Backward compatibility is what it is. "use strict"; in ES5 was an 
opt-in, so not widely adopted enough (i.e., universally adopted) to help.


More information about the es-discuss mailing list