Re: [whatwg/streams] ReadableStream constructor: standard text and reference implementation doesn't match (#917)

> Why not? This seems like it'd work:

> ```javascript
> class TransformStream {
> constructor({transformer = {}, 
>              {size: writableSizeFunction, highWaterMark: writableHighWaterMark} = {},
>              {size: readableSizeFunction, highWaterMark: readableHighWaterMark} = {})
>  {}
> }
> ```

I didn't know you could do that. But I still have a mild preference for making the lookups explicit. Interleaving them with the validations feels more natural to me.

-- 
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/917#issuecomment-379223376

Received on Friday, 6 April 2018 11:15:35 UTC