W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Re: Elements (extends Array)

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 07 Aug 2013 23:44:32 -0400
Message-ID: <52031420.20402@mit.edu>
To: public-script-coord@w3.org
On 8/7/13 11:19 PM, Cameron McCormack wrote:
> For Web IDL, if this is a feature that is needed soon, we could just allow
>    interface Elements : Array { ... };

If the intent here is to allocate an object that acts just like an Array 
but has additional DOM-object-like behavior, I'd be interested in 
feedback from implementors on how implementable this is likely to be.... 
  In SpiderMonkey the answer is "not very" without at the very least 
noticable performance penalties for either DOM objects (all DOM objects, 
since they could no longer assume certain internal invariants they 
assume now) or arrays, I suspect.

Received on Thursday, 8 August 2013 03:45:00 UTC

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