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

I voted for the factory method on Twitter, because it seems poor and error-prone design to have one type of object to have two modes where some methods are disabled depending on the mode. Having two types doesn't involve modally disabling some methods. That both types are some kind of decoder doesn't mean they should be one type.

I also think we shouldn't do this kind of design by Twitter poll. [Clearly](https://twitter.com/bterlson/status/971210573818904576), we can't trust the people who vote to apply the HTML Design Principles (which to a large extent are really Web Platform design principles).

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

Received on Wednesday, 14 March 2018 08:46:28 UTC