RE: Idiomatic representation of { buffer, bytesRead }

From: Jason Orendorff [mailto:jason.orendorff@gmail.com]


> Would it make it seem less strange if you specified the argument as a
> "dictionary" with these properties:
> 
>     {buffer:, byteOffset:, byteLength:, constructor:}
> 
> ...and then casually mention that DataViews and TypedArrays both happen
> to quack in just this way?

Yes, this in fact makes me very happy :)

Received on Thursday, 5 March 2015 22:16:32 UTC