- From: Henri Sivonen <notifications@github.com>
- Date: Fri, 23 Mar 2018 08:08:50 +0000 (UTC)
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 23 March 2018 08:09:15 UTC
With my implementor hat on, I'd prefer having stream transformer objects separate from `TextEncoder` and `TextDecoder`. I.e. from JS one would use `new TextEncoderTransformStream(...)` or `new TextDecoderTransformStream(...)`. Benefits: * Modes are type-level and not hidden flags on a single type that does everything. * No need to lock away API surface depending on mode. * We get to eliminate the label argument on the encoder side that does only UTF-8. -- 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-375574615
Received on Friday, 23 March 2018 08:09:15 UTC