Separating a Hash type from Object
Brendan Eich
brendan at mozilla.org
Wed May 2 13:13:16 PDT 2007
On May 2, 2007, at 12:56 PM, P T Withington wrote:
> Have you considered Hash being a new native type with its own rules
> for ToPrimitive, ToString, and ToObject?
We have considered a native Dictionary class, as I reported recently.
It lacked sugar; it didn't support weak refs. We stepped back and
deferred it.
Because Dictioinary required users to call has, get and set methods,
no changes to avoid bad shadowing of toString and valueOf arose with
the proposal.
/be
More information about the Es4-discuss
mailing list