Kona [[Getter]] and [[Setter]] descriptions
Allen.Wirfs-Brock at microsoft.com
Sun Nov 16 10:57:22 PST 2008
I think the connection is commonly expected so that possibility should be acknowledge but also emphasized as not being required. Would you concern about implying some implicit maintenance of state be alleviated if [[Getter]] said "called to produce" rather than "called to return"?
In general, I think the descriptive text in these tables need to be considered as informative rather than normative. The normative definitions of the getters and setters is provided by the algorithms of the specifications. Overall, I don't this document (and its predecessors) does a very good job at clearly distinguishing the informative from the normative.
>From: Peter Michaux [mailto:petermichaux at gmail.com]
>Sent: Sunday, November 16, 2008 10:36 AM
>To: Allen Wirfs-Brock
>Cc: es-discuss at mozilla.org
>Subject: Re: Kona [[Getter]] and [[Setter]] descriptions
>On Sun, Nov 16, 2008 at 10:11 AM, Allen Wirfs-Brock
><Allen.Wirfs-Brock at microsoft.com>
>> [[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]]
>These descriptions are going back towards the idea of "state" and a
>connection between getting and setting. I don't think that is
>necessary even though that is the motivation for their existence.
>Getting and setting are two totally disjoint operations unless a
>particular object is implemented so they are connected.
More information about the Es-discuss