W3C home > Mailing lists > Public > public-webapi@w3.org > April 2008

Re: [Element Traversal LC] access to element by index

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 02 Apr 2008 14:06:02 -0500
Message-ID: <47F3D91A.2030505@mit.edu>
To: Henri Sivonen <hsivonen@iki.fi>
CC: "Web APIs WG (public)" <public-webapi@w3.org>

Henri Sivonen wrote:
> Allowing app code to index into platform 
> structures that are most commonly forward-iterated seems like an 
> anti-pattern in terms of what implementation constraints are placed if 
> the impression that the app developer gets is that indexing has the 
> performance properties of array access and that it is OK to write app 
> code with that assumption.

AS you noted in another post, in practice app developers assume that anything 
they do will be fast and when it's not they blame the UA.  And therefore, no 
matter which access pattern you expose it has to be fast.

Received on Wednesday, 2 April 2008 19:07:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:26 UTC