W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

RE: Idiomatic representation of { buffer, bytesRead }

From: Domenic Denicola <d@domenic.me>
Date: Thu, 5 Mar 2015 22:16:00 +0000
To: Jason Orendorff <jason.orendorff@gmail.com>
CC: "es-discuss@mozilla.org" <es-discuss@mozilla.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <CY1PR0501MB1369A49BCC2159801022DD23DF1F0@CY1PR0501MB1369.namprd05.prod.outlook.com>
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

This archive was generated by hypermail 2.3.1 : Thursday, 5 March 2015 22:16:33 UTC