Ian Hickson wrote:
For purposes that I hope are sound.On Wed, 29 Apr 2009, John J Barton wrote: So why is numeric keys part of the API?But the part that has me confused is maybe just me being dumb. I just have a hard time with: What would you recommend to use for the right hand side of "instanceof"? Recall the goal here is to provide a visual representation of an object, any object in any _javascript_ program what so ever. But in the context of Storage API, what do I conclude? That Storage should use length because it is like a TimeRange? As I said before, the mistakes of the past should not be repeated. "Consistency" is an aid to programmers when it helps us quickly write correct code. Adopting length to be consistent makes sense if that will help programmers to quickly write correct Storage code. But in the Storage case a length property would cause confusion and lead to incorrect code. Therefore I argue against its use in the API. jjb |
- Re: Storage 'length' and enumeration John J. Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J. Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J Barton
- Re: Storage 'length' and enumeration Anne van Kesteren
- Re: Storage 'length' and enumeration John J Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J. Barton
- Re: Storage 'length' and enumeration Sean Hogan
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration timeless
- Re: Storage 'length' and enumeration Sean Hogan
- Re: Storage 'length' and enumeration Sean Hogan
- Re: Storage 'length' and enumeration Boris Zbarsky
- Re: Storage 'length' and enumeration Sean Hogan
- Re: Storage 'length' and enumeration Boris Zbarsky
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J Barton
