From: Brendan Eich >From: Isaac Schlueter >> 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.
The use of a compulsory identifier is a bright idea. Having an identifier guarantees that we always have a function name in the stack trace, and keeps open the possibility of recursion. Besides, it is unambiguous, and, as I pointed out earlier, we can still use something like "lambda". _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

