On Oct 2, 2011, at 5:16 PM, Axel Rauschmayer wrote:

> Yes, as it stands, the proposal is quite usable. You can even export pwdName 
> to unit tests (which would make more sense if it was a method identifier). I 
> only wish we could avoid redundantly repeating private names, usually far 
> away from where they are actually used. I like that this approach can be 
> retrofitted so easily, but suspect that having to “declare” each private name 
> before using it will get tired quickly.

Could be. My example closed the block in which the private name was scoped 
without exporting MyClass! Oops. If I'd used a module with inline body, then 
export prefixing the function MyClass would do the job, but it's a bit heavy.

Still, we moved private name objects ahead, and rightly so, without adding 
syntax for them. Syntax is hard (I underestimate this sometimes).

/be

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to