Re: [whatwg/streams] TransformStream probably doesn't need two strategies (#190)

I have an idea that might just work. Instead of combining the strategies into a single argument, how about making them positional arguments? In other words, the constructor would look like

```javascript
new TransformStream(transformer, writableStrategy, readableStrategy);
```

The benefits:
- It pushes people in the direction of using the `writableStrategy` in preference to the `readableStrategy`
- It will usually look like the calling convention for ReadableStream and WritableStream.

Disadvantage:
- People who work with code that actually uses both strategies will have to remember which way around the arguments go.

-- 
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/190#issuecomment-323655800

Received on Monday, 21 August 2017 06:18:59 UTC