- From: Jake Archibald <notifications@github.com>
- Date: Fri, 09 Dec 2016 06:43:31 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Message-ID: <whatwg/streams/issues/433/266029654@github.com>
@GrumpyMcGrumperson > Why isn't a byte stream the lowest level building block here? A byte stream is a stream that's optimised for chunks of `Uint8Arrays`, whereas general streams can be of any value (objects, numbers, dates, whatever). > In fact, isn't a "pull source" a Stream too? Pushing and Pulling are just different ways of arranging for stuff to come out of a Stream! Right! That's why they aren't different types here. See the examples https://streams.spec.whatwg.org/#creating-examples > I also noticed people talking about reading stuff from a stream, and it looked like you should have just copied what Java does What's bad about the current spec that Java does better? > This reminds me, why would a GzipStream be a "TransformerStream", with both a Readable- and a WriteableStream? Why would it be necessary? By having a writable endpoint it can be piped to. Because its a separate property it can be passed to other pieces of code without exposing the whole transform object. -- 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/streams/issues/433#issuecomment-266029654
Received on Friday, 9 December 2016 14:44:05 UTC