An "extend" operator is a natural companion to <|
brendan at mozilla.com
Tue Jul 19 12:07:32 PDT 2011
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss