Re: [whatwg/encoding] Add Streams support (#72)

If we did separate objects, I'd drop Transform from the name and go with `TextDecoderStream` and `TextEncoderStream` to make them easier to remember. I'd also define two mixins for the members these objects share with `TextDecoder` and `TextEncoder` so they can have a single definition. And then for any parts of the remaining algorithms that are shared I'd also define shared steps so that it's clear what is shared and what is different.

I don't think it would be that bad, but I'm also not entirely convinced that reusing `TextDecoder` and `TextEncoder` will turn out badly. Most folks will copy-and-paste and for the remainder that might read the documentation we could make that clear enough.

-- 
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-376427525

Received on Tuesday, 27 March 2018 07:39:54 UTC