typed objects and value types
zenparsing at gmail.com
Wed Apr 2 15:43:00 PDT 2014
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 <dslomov at chromium.org> wrote:
> On Wed, Apr 2, 2014 at 10:17 PM, Mark S. Miller <erights at 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!].
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss