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
http://annevankesteren.nl/
Received on Wednesday, 29 April 2009 21:41:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT