Attribute defaults for Object.defineProperty
Ingvar von Schoultz
ingvar-v-s at comhem.se
Thu Aug 21 03:44:57 PDT 2008
If the word "flexible" is under debate, I think "redefinable"
may be more specific.
And speaking of meta words, the function name Object.freeze()
is a bit fuzzy. I think Object.lock() would suggest more
strongly what it does.
Allen Wirfs-Brock wrote:
>> From: Brendan Eich [mailto:brendan at mozilla.org]
>> Sent: Wednesday, August 20, 2008 11:25 AM
>> Hi Allen, could you remind me and a few others who were wondering
>> yesterday (sorry I don't remember -- it's in minutes, somewhere) why
>> [[Deletable]] was not chosen instead of [[Flexible]]? Thanks.
> The reason for not using "deletable" was originally explained in the message below. I believe that at one of the phone meetings after Oslo we briefly discussed changing it back to "dynamic" or possibly something else but the consensus was to stick with "flexible".
>> -----Original Message-----
>> From: es3.x-discuss-bounces at mozilla.org [mailto:es3.x-discuss-
>> bounces at mozilla.org] On Behalf Of Allen Wirfs-Brock
>> Sent: Thursday, June 26, 2008 1:39 PM
>> To: es3.x-discuss at mozilla.org x-discuss; es4-discuss at mozilla.org es4-
>> Subject: RE: "dynamic" attribute nomenclature
>> At today's ES 3.1 conference call (see
>> we agreed to use the term "Flexible" for the property attribute that
>> we recently had been calling "Dynamic" and which subsumes the
>> DontDelete attribute.
>> From: Allen Wirfs-Brock
>> Sent: Wednesday, June 25, 2008 10:37 AM
>> To: Lars Hansen; Mark S. Miller
>> Cc: es3.x-discuss at mozilla.org x-discuss
>> Subject: "dynamic" attribute nomenclature
>> In Lars's feedback on the the June 11, ES3.1 draft he said:
>> p26 8.6.1. (And throughout the spec) The meaning of "dynamic" in ES4
>> is something else (it means a non-fixture property). It would probably
>> reduce confusion if the property name Deletable were used here, as I
>> though we had agreed previously.
>> Dynamic as currently used in ES3.1 means more than just Deletable, it
>> also means that the property attributes (including the Dynamic
>> attribute) can be modified and that it can be transformed between
>> being a data and procedural property. Hence, the name Deletable seems
>> to imply something too narrow.
>> Playing around with the thesaurus, the best "positive, active term that
>> I could find that seems to be a reasonable description of this
>> semantics is:
>> (other, perhaps less satisfy or otherwise unacceptable alternatives
>> include: changeable, mutable, modifiable, flexible, amendable)
>> Note this would mean that data properties would expose properties
>> named Writable and Alterable. My sense is that there is enough
>> conceptual distance between those terms that there won't be too much
> Es-discuss mailing list
> Es-discuss at mozilla.org
Ingvar von Schoultz
------- (My unusual use of capitals in code comes from my opinion that
reserved and predefined words should all start with lowercase, and
user-defined should all start with uppercase, because this will easily
and elegantly prevent a host of name-collision problems when things
like programming languages are upgraded with new labels.)
More information about the Es-discuss