Re: [streams] Should ReadableStreamController be visible? (#322)

In JS, one can do things like: if (rs instanceof ReadableStream), new
ReadableStreamReader(...), ReadableStream.prototype...
Do we also want that for ReadableStreamController?
For instance, what is the point of allowing to do "new
ReadableStreamController()" if it always throws a TypeError.


2015-04-08 21:55 GMT+02:00 Domenic Denicola <notifications@github.com>:

> I still don't understand. Can you give some example code you would use?
>
> But the controller could just be implemented as an object with three
> instance properties.
>
> No, then you would create three new function objects every time you create
> a controller, which is very wasteful.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/whatwg/streams/issues/322#issuecomment-91018035>.
>


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/322#issuecomment-91190377

Received on Thursday, 9 April 2015 10:40:59 UTC