FWIW, function [A-Za-z_] includes `var expr = function expr() {}` or
`{expr: function expr(){}}` both quite common patterns (the first one when
you want to be able to debug the name of the function but due inline, later
on, features detection, the former might change)Still I agree with David and asked again indeed what was the rationale for arrow function that in my opinion solves only one very specific case and nothing else ... came out in CoffeeScript that is the most common case (I don't even understand why is that but ... hey, I don't CoffeeScript so I believe that's OK) Regards On Mon, Dec 9, 2013 at 12:58 PM, Brendan Eich <[email protected]> wrote: > Axel Rauschmayer wrote: > >> ... was surprised to find out that the majority of people prefer var + >> function expression to a function declaration, because then there is only a >> single kind of function definition. >> > > Small-N survey, right? Opinios vary widely. However, try a code search for > 'var [A-Za-z_][A-Za-z_0-9]* = function' vs. 'function [A-Za-z_]'. The > latter predominates (of course this leaves out other uses of 'function'). > > /be > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

