W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

Re: Web IDL maplike: Allow spec prose to specify how key-type should be compared?

From: Mark S. Miller <erights@google.com>
Date: Mon, 9 Mar 2015 13:10:32 -0700
Message-ID: <CABHxS9juP3XDNB_sQiJM+ZBJGZmNFKqYgbezr0BR34SGNLbMFA@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, David Dorwin <ddorwin@google.com>, public-script-coord <public-script-coord@w3.org>, Boris Zbarsky <bzbarsky@mit.edu>
I can see why it may need a prototype. But why does it need a constructor?


On Mon, Mar 9, 2015 at 12:29 PM, Jonas Sicking <jonas@sicking.cc> wrote:

> On Mon, Mar 9, 2015 at 12:11 PM, Mark S. Miller <erights@google.com>
> wrote:
> > That's one of things that's so cool about the Promise constructor
> pattern:
> >
> > var resolver;
> > var promise = new Promise(r => resolver = r);
> >
> > Couldn't this be applies to streams? (I haven't yet followed streams.)
>
> Sadly not. Because 'r' still needs to have a constructor.
>
> / Jonas
>



-- 
    Cheers,
    --MarkM
Received on Monday, 9 March 2015 20:10:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 9 March 2015 20:10:59 UTC