What missing expressive capability does this give developers, aside from
overloading of "equality"?

Obviously, being able to directly represent an int33 (for example) is
useful, but I'm not seeing the motivation behind user-defined value
objects, yet, aside from overloading equality.


On Wed, Apr 2, 2014 at 4:29 PM, Dmitry Lomov <dslo...@chromium.org> wrote:

>
>
>
> On Wed, Apr 2, 2014 at 10:17 PM, Mark S. Miller <erig...@google.com>wrote:
>
>>
>>
>> However, I have to quibble with "observable". WeakRefs make GC
>> observable. WeakMaps do not. Running out of memory, or failing to, is not
>> an observation, since the spec never says when this might or might not
>> occur anyway. In fact, the spec as written is only faithfully implementable
>> on a machine with an unbounded amount of memory ;). (I regret the missed
>> opportunity to discuss test262 and infinite machines on April 1)
>>
>
> :) Agreed on all counts.
> "Observable" in a sense of "from practical standpoint, programmers will
> try to reason about it, so we should not make their reasoning hard" (or
> "harder than necessary") [not a quantifiable argument indeed!].
>
> Dmitry
>
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss@mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to