Re: [streams] ReadableStream.getReader name is a bit misleading (#308)

> It feels like getReader would make sense if it returned the reader instance the first time, and then after that, returned a 'frozen' reader or something like that instead of throwing an error. An error might be thrown if you try to act upon that reader, rather than simply 'getting' it.

I don't think throwing an error is unsound for getX methods. XMLHttpRequest.responseText can throw an error, for example (I mean, methods are more likely to throw errors than attribute getters).



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

Received on Friday, 3 April 2015 03:23:26 UTC