Function declarations with lexical `this`?

Brendan Eich brendan at
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.


More information about the es-discuss mailing list