Brendan Eich wrote:
Yes, an identifier is required. It would not be possible to define
an unnamed function in this way.
Why not express an anonymous function, though? Definition !=
expression. As usual, an expression *statement* could not start with (
and consist entirely of a function-keyword-free anonymous function
expression.
I should have stopped at "could not start with". Doesn't matter how it
might end, an expression-statement can't start with 'function' now and,
under the proposal, could not start with the ( beginning a formal
parameter list.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss