Mark S. Miller wrote:
With such a "yield" prohibited, AFAICT the exceptions in non-rejected programs are "return" and the open question about "var". Did we miss any others?

Not that I know of, but why is 'var' at issue? An arrow function is still a function, and function body scopes (hoisted) var bindings. If arrows bind 'return' why not 'var' too? Better to avoid diverging from non-arrow functions than try to minimize TCP exceptions when there are any exceptions at all, I say.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to