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

> Hmm, why can't we say that you included size where it was meaningless, and in such cases, it should do nothing?

We could. But then we'd go back to a situation where using CountQueuingStrategy with a byte stream had very counter-intuitive results.

In general, if a user of the API does something meaningless to us we can't tell whether they did it on purpose or not. So I think our default position should be to let them.

However, in some cases the consequences of being lax are sufficiently bad that it's better to disallow some usages completely.

I think this has to be decided on a case-by-case basis.

-- 
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-385665391

Received on Tuesday, 1 May 2018 13:01:38 UTC