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

Re: FileList (and other Array-like types)

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 30 May 2013 10:19:28 -0400
Message-ID: <51A75FF0.10409@mit.edu>
To: Robin Berjon <robin@w3.org>
CC: Jonas Sicking <jonas@sicking.cc>, public-script-coord@w3.org, Arun Ranganathan <arun@mozilla.com>, Anne van Kesteren <annevk@annevk.nl>
On 5/30/13 5:41 AM, Robin Berjon wrote:
> This includes mutating them, and
> behaving sanely in the face of mutation.

A question is what constitutes sanity.

> I'm very partial to C. The 5 should get pushed onto the array, and
> whenever I look there in future it should still be right there, but any
> control that is reflecting the status of that array should just ignore it.

As opposed to just throwing an exception and being broken?  That might 
be expensive to do.

> All the libraries that do data binding (e.g. Angular, KnockOut) will do
> something like that.

What do they do if you push bogus values into the array?

-Boris
Received on Thursday, 30 May 2013 14:20:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:49 UTC