On Sat, May 14, 2011 at 11:57 PM, Erik Corry <[email protected]> wrote:

>
> On May 15, 2011 2:55 AM, "Boris Zbarsky" <[email protected]> wrote:
> >
> > On 5/14/11 6:37 PM, Oliver Hunt wrote:
> >>
> >> Can you provide a use case where you have an object key as the usual
> programming idiom?
> >
> >
> > Attaching metadata to object without polluting the objects themselves.
>
> That sounds more like private names
>
Private name and soft field lookup inherits. WeakMap lookup doesn't.



> >
> > For example, Firefox extensions want to do this all the time for various
> DOM objects (and especially Window).
> >
> > -Boris
> >
> > _______________________________________________
> > es-discuss mailing list
> > [email protected]
> > https://mail.mozilla.org/listinfo/es-discuss
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
    Cheers,
    --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to