Christoph Basedau wrote:
> Spidermonkey properties work fine. Is JS 1.5, and especially this part,
> going to be standardized in the near future, or will it likely remain a
> Mozilla extension?
JavaScript 1.5 implements the ECMAScript edition 3 standard but
getters/setters are an extension which is intentionally implemented in
this __defineGetter__/__defineSetter__ way to not conflict with any
syntax changes future ECMAScript editions might specify.
As for future ECMAScript editions I am not sure anything is going to
happen in this regard, there was work on an ECMAScript edition 4 in the
past with the main feature to introduce a class construct but no
standard resulted from that, instead Microsoft went ahead with
JScript.NET and Macromedia with ActionScript supporting classes.
--
Martin Honnen
http://JavaScript.FAQTs.com/