Operator overloading for non-value objects

Dean Landolt dean at deanlandolt.com
Mon Jan 13 06:11:38 PST 2014


On Mon, Jan 13, 2014 at 8:38 AM, Anne van Kesteren <annevk at annevk.nl> wrote:

> On Mon, Jan 13, 2014 at 1:13 PM, Dean Landolt <dean at deanlandolt.com>
> wrote:
> > Value Objects. See the recent thread re: value objects on es-discuss.
> Slides
> > from the presentation Brendan linked to
> > (http://www.slideshare.net/BrendanEich/js-resp) confirm that == will
> still
> > be overloadable and he says he'll be working on writing it all up this
> > month.
>
> Value objects are immutable. URL objects do not have that quality
> which is why I titled this thread overloading for non-value objects...
>

Ah, I apologize -- I didn't bother reading the subject.

I'd only add that in spite of all the legacy, the mutation-heavy API of URL
objects seems pretty clunky, especially in the presence of value objects.
Ah well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140113/7e4c4b77/attachment.html>


More information about the es-discuss mailing list