- From: Adam Rice <notifications@github.com>
- Date: Fri, 06 Apr 2018 04:15:08 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 6 April 2018 11:15:35 UTC
> 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