On dropping @names

David Herman dherman at mozilla.com
Mon Dec 3 18:42:59 PST 2012


On Dec 3, 2012, at 6:35 PM, Brendan Eich <brendan at mozilla.org> wrote:

> Recall the main objection was not the generativity of @names mixed with the obj. at foo pun (after-dot). It was the usability tax of having to declare
> 
>  private @foo;
> 
> before defining/assiging
> 
>  obj. at foo = foo;
> 
> (in a constructor, typically).

Good clarification, thanks. Yes, the more important issue is the tension between having to predeclare all the @names in a scope and the danger of implicit scoping. (That said, the generativity does worry me. It's a smell.)

Dave



More information about the es-discuss mailing list