Function declarations with lexical `this`?

Brendan Eich brendan at mozilla.com
Tue Jun 25 13:23:26 PDT 2013


David Bruant wrote:
> You'd be surprised. I've read lots of files from different people 
> where I was left wondering "why did he/she choose 'var x = 
> function(){...}' over 'function x(){}'". In the end, there was no good 
> reason.

Crock recommends -- in talks and in JS:TGP too, IIRC.

But 'function x(){}' endures and predominates in my experience.

/be


More information about the es-discuss mailing list