> 1. Deprecate [] for property access in non-collection objects and use methods 
> such as Object.getProperty(name) and Object.setProperty(name, value), instead.

Additionally:

Object.prototype.operator[]get = function (name) {
    return Object.getProperty(name);
}
Object.prototype.operator[]set = function (name, value) {
    return Object.setProperty(name, value);
}


-- 
Dr. Axel Rauschmayer

a...@rauschma.de
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com



_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to