The private names proposal would private another way to avoid creating 
extension methods with conflicting names 
http://wiki.ecmascript.org/doku.php?id=strawman:private_names

On Mar 18, 2011, at 5:14 PM, Mike Shaver wrote:

> On Fri, Mar 18, 2011 at 5:11 PM, John-David Dalton
> <[email protected]> wrote:
>> Extending the Object.prototype is a compatibility nightmare
> 
> It was a compatibility nightmare when people didn't namespace, and
> when you couldn't make non-enumerable properties.  Using a namespace
> for additions to the prototype chain and using ES5's defineProperty to
> keep those additions from affecting enumeration behaviour seems like
> it overcomes those, at least to me.
> 
> Mike
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss

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

Reply via email to