Axel Rauschmayer wrote:
Losing generic [] as a way to access all "native" properties of the
object is big price.

I wonder if it really is such a big price: isn’t [] mainly used for
objects as maps from strings to values? Then you should use something
else in ES6, anyway (SimpleMap, possibly dict, possibly other map
implementations). For the few remaining cases, Object.getProperty() (or
something similar) should do just fine.

Hm. Well, maybe you are right.

But it gets harder with getters and setters... maybe if there was an API for simulating proper legacy foo[bar] and foo[bar]=baz, (Object.get, Object.set?) generic [] could be dropped without much of a loss.

--
Dr. Axel Rauschmayer
a...@rauschma.de <mailto:a...@rauschma.de>

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

Reply via email to