Re: [streams] Support reading bytes into buffers allocated by user code on platforms where only async read is available (#253)

(Continued from https://github.com/whatwg/streams/issues/253#issuecomment-77313636)
(This comment is premised on option (C))

> By the way, in this option ReadableByteStream works differently from ReadableStream. As I wrote, "non-tricky" code can work with both, but the definition of trickiness is not given.
I think stating contract that all ReadableStream-like classes should ensure is very helpful. It should cover the user-facing APIs.

The current draft has [Model] (https://streams.spec.whatwg.org/#model) section and many helpful notes such as ones in https://streams.spec.whatwg.org/#rs-prototype. They are good, but I think moving them into one section and promoting such notes to requirements which every ReadableStream-like class must satisfy will benefit custom reader developers and readable stream users.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/253#issuecomment-77374571

Received on Thursday, 5 March 2015 14:41:53 UTC