Kona [[Getter]] and [[Setter]] descriptions
Allen.Wirfs-Brock at microsoft.com
Sun Nov 16 10:11:51 PST 2008
>From: es-discuss-bounces at mozilla.org [mailto:es-discuss-
>bounces at mozilla.org] On Behalf Of Peter Michaux
>Sent: Saturday, November 15, 2008 10:47 PM
>To: es-discuss at mozilla.org
>Subject: Kona [[Getter]] and [[Setter]] descriptions
>From section 8.6.1
>Would the following be sufficient?
>[[Getter]] A zero-argument method called each time the property is
>[[Setter]] A one-argument method called each time the property is
I generally agree but propose a slight variant of Peter's proposed definitions:
[[Getter]] A zero-argument function that is called to return the property value each time the property read.
[[Setter]] A one-argument function that is called with the assigned value each time the property is assigned. The effect of a property's [[Setter]] function may but it not required to have an effect on the value returned by subsequent calls to the property's [[Getter]] function.
More information about the Es-discuss