Re: [web-bluetooth] read-only ArrayBuffer is strange

For the uses in the [main 
spec](https://webbluetoothcg.github.io/web-bluetooth/), writable 
ArrayBuffers aren't terrible. They're fields reporting data to the 
website, and the UA would never read any mutations the website makes. 
I'd rather have them writable than make them functions, although 
that's a matter of taste.

The [scanning 
spec](https://webbluetoothcg.github.io/web-bluetooth/scanning.html) 
does use some ArrayBuffer fields after they're exposed to websites. 
I'm inclined to leave the read-only ArrayBuffers in the spec until 
someone starts implementing Scanning, just in case TC39 comes through 
quickly, but there are also several alternatives we can fall back to 
at that point.

-- 
GitHub Notification of comment by jyasskin
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/300#issuecomment-250009254
 using your GitHub account

Received on Tuesday, 27 September 2016 21:48:35 UTC