W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2015

Re: [WebIDL] T[] migration

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 16 Jul 2015 11:48:13 -0700
Message-ID: <CA+c2ei8voOwD3ZsUVCfYOfgR+5EsfFHtSU+N5rL3PJUrV6ua_w@mail.gmail.com>
To: Travis Leithead <travis.leithead@microsoft.com>
Cc: public-webapps <public-webapps@w3.org>, Ian Hickson <ian@hixie.ch>
On Thu, Jul 16, 2015 at 8:45 AM, Travis Leithead
<travis.leithead@microsoft.com> wrote:
> Recommendations:
> ·        HTML5
> ·        Web Messaging
> Other references:
> ·        CSS OM
> ·        Web Sockets
> ·        WebRTC

Note that in practice I would think that most implementations return
objects which have a .item() function on them. So replacing with just
a plain FrozenArray<T> likely would not be web compatible :(

We likely need to introduce something like FrozenArrayWithItem<T>
which returns a subclass of Array that has a .item function.

Or we need to add Array.prototype.item, but that would require
convincing TC39 that that's a good idea, and would need testing for
web compatibility.

/ Jonas
Received on Thursday, 16 July 2015 18:49:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:57 UTC