typed objects and value types

Dmitry Lomov dslomov at chromium.org
Wed Apr 2 08:15:52 PDT 2014

On Wed, Apr 2, 2014 at 5:01 PM, Andreas Rossberg <rossberg at google.com>wrote:

> Other properties, like the ability to use an object as keys in weak
> collections, follow from that. If we suddenly allowed objects that do
> not have identity, but a structural notion of equality, then we could
> not allow these objects into weak collections. That would break a
> rather fundamental assumption, and make a distinction between
> different sorts of objects that does not exist before.

I never had a strong preference either way, and making typed objects and
value objects "objects" simplifies the spec vastly.
But weak maps semantics really pushes the needle towards value and type
objects _not_ being objects.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140402/6dd27427/attachment.html>

More information about the es-discuss mailing list