W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2012

Re: [whatwg] Canvas: dash list API

From: Tobie Langel <tobie.langel@gmail.com>
Date: Sat, 22 Dec 2012 15:01:10 +0100
Message-ID: <CAMK=o4eFX_uqz4gLARYVpdhssdAigqLV=hZgjY7CU-RFfooXwQ@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Cameron McCormack <cam@mcc.id.au>, WHATWG <whatwg@whatwg.org>
On Sat, Dec 22, 2012 at 2:57 PM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Sat, Dec 22, 2012 at 2:43 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> > On 23/12/12 12:40 AM, Anne van Kesteren wrote:
> >> I guess dashList is somewhat simpler, but I think it would be nice if
> >> it still did type coercion.
> >
> > In that case, I guess we are reliant on whatever ES-allowed Array
> extending
> > is possible, and I haven't followed that for a bit.  Is this actually
> > possible now?
>
> The feedback I got on es-discuss was
> https://mail.mozilla.org/pipermail/es-discuss/2012-December/027248.html
> which seems to suggest to create our own kind of object that looks
> like an Array. That seems however somewhat cumbersome to do each time
> we need something simple. I guess I should ask some more questions
> there.


Array-like objects which don't "inherit" from the Array object and are thus
missing methods one would expect to find on them (forEach, join, etc.) is
one of the biggest WTF of the Web platform. We should be doing whatever it
takes to fix this.

--tobie
Received on Saturday, 22 December 2012 14:01:37 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:50 UTC