- From: Adam Rice <notifications@github.com>
- Date: Tue, 25 Oct 2016 22:25:46 -0700
- To: whatwg/encoding <encoding@noreply.github.com>
Received on Wednesday, 26 October 2016 05:26:14 UTC
I am leaning slightly towards the "overloaded class" approach because it will look better on a slide. In other words, this syntax: ```javascript var stringReadable = byteReadable.pipeThrough(new TextDecoder()); ``` with `.decode()` throwing an exception if called when the stream is in use. I think I can spec it relatively simply by delegating to a TransformStream. Whether or not to inherit from TransformStream can then be postponed to a separate discussion. The spec for TransformStream is not ready yet, so we don't need to make a decision immediately. I expect it will be ready in the first half of November. Incidentally, I made minor updates to the Stream patch at http://htmlpreview.github.io/?https://github.com/ricea/encoding-streams/blob/master/patch.html, however it still uses the `TransformStream.stream()` syntax. -- 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/encoding/issues/72#issuecomment-256252787
Received on Wednesday, 26 October 2016 05:26:14 UTC