Re: [whatwg/streams] TransformStream byte streams (#616)

My idea is that the interface to transformer-authors or transform-consumers doesn't change: only the internal implementation.

So for default->default transform streams it would look exactly the same as it does today. For default->byte streams the controller interface visible to the transformer would have a byobRequest accessor. For byte->default streams the controller would have the same API as today, but the transformer might have additional methods depending on whether we choose RBYOB, KYOB or something else.

The difference is that if, for example, we added a "char" type in future, would we need to add 5 new controller types to TransformStream, or only 2?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/616#issuecomment-262150733

Received on Tuesday, 22 November 2016 05:24:30 UTC