W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: Storage 'length' and enumeration

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 29 Apr 2009 23:40:07 +0200
To: "John J Barton" <johnjbarton@johnjbarton.com>, "Ian Hickson" <ian@hixie.ch>
Cc: public-webapps@w3.org
Message-ID: <op.us53s51f64w2qv@anne-van-kesterens-macbook.local>
On Wed, 29 Apr 2009 20:51:33 +0200, John J Barton  
<johnjbarton@johnjbarton.com> wrote:
> Yes and Firebug has to have special code for HTMLCollection because this  
> mistake
> was made in the past. Now we will have to have different special code for
> Storage. Rather than modeling new API on old mistakes, consider learning  
> from the past experience and take a direction that developers will find  
> less
> confusing. Pseudo-arrays with "except... this and that" makes APIs  
> intricate and
> puzzling. A simpler and less ambiguous approach would be better in my  
> opinion.

Is there any type of object that holds a collection that does not use  
.length? Seems a bit weird to break consistency here in my opinion.

Anne van Kesteren
Received on Wednesday, 29 April 2009 21:41:09 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:16 UTC