W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2014

[Bug 23369] Provide hooks for Typed Arrays (ArrayBuffer and friends)

From: <bugzilla@jessica.w3.org>
Date: Fri, 03 Oct 2014 17:13:42 +0000
To: public-script-coord@w3.org
Message-ID: <bug-23369-3890-L8pvx4hpQT@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23369

--- Comment #47 from Domenic Denicola <domenic@domenicdenicola.com> ---
That plan also sounds good to me.

You'll need some very strong language so that spec editors don't overuse "get a
reference to the bytes held by the BufferSource" since it can be a source of
data races. They at least need to understand the consequences.

As for return types, I strongly believe ArrayBuffer is correct where possible.
It just makes more sense to give people the lower-level buffer primitive and
letting them access it however they want. (And a DataView might be more correct
than Uint8Array for people who want byte access, BTW.) Kind of like in C#
returning IEnumerable<T> instead of ArrayList<T>.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 3 October 2014 17:13:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:23 UTC