On Jul 19, 2011, at 11:37 AM, Bob Nystrom wrote:

> Yeah, I don't like things that look like bare assignment either. I know Mark 
> isn't a fan, but I'd consider:
> 
> new:
>   var numAttacks = 0;
>   var name;
> 
> Or maybe let. I like leading with some keyword.

Those mislead, although var less so in ES1-5 if you think of global var binding 
a property of the global object. Again, declarative binding forms should (and 
do in ES.next) create lexical definitions, not properties in objects.

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to