Re: [FileAPI] Blob constructor should probably take a sequence, not an IDL array object

Arun Ranganathan:
> I've pinged heycam to see if this is a proper use of the sequence type.  I'm not sure it allows for such a variation in parameters.

I agree with Boris, it makes sense to use sequence<> here.  Whenever you 
just want to take a list of values in an operation argument, and you 
don't want to keep a reference to a platform array object, you should 
use a sequence<>.

But I also agree with Glenn that if you did use T[], and the 
implementation knows that it will never use the temporary platform array 
object that gets created when converting the (for example) JS Array 
object, it should be able to skip the actual platform array object creation.

Received on Tuesday, 11 September 2012 05:07:53 UTC