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:
> 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.
es-discuss mailing list