Re: [streams] getting and releasing reader (#297)

Regarding auto-release: there are very very few differences in behavior that you can discern without inspecting `isActive`.

The only difference I can find is that if you write "bad" reader-using code that doesn't release the reader when it finishes with it, nobody will be able to get any more readers, even though those readers will always just be closed/error. (Actually, the [readableStreamToArray](https://github.com/whatwg/streams/blob/0de787a6eba39dc07326131c8ef4f8689efc5d6f/reference-implementation/test/utils/readable-stream-to-array.js) function in the pull request is an example of such bad code: it will release upon successful close, but not if the stream errors.)

So, I think it would be better to keep auto-release.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/297#issuecomment-78908175

Received on Friday, 13 March 2015 10:33:25 UTC