Re: [streams] Add readableAmount getter to ReadableByteStream (#279)

I wonder if this should be a getter or a method. Right now it is a method on the underlying source but a getter on the stream.

I think either:

- We should make it a getter on both, with the assumption that the underlying source implementer will respect the vague idea that "getters should not do very much"
- Or we should make it a method on both, so that we don't have to assume anything.

Alternately we could come up with more complicated schemes like making it a method on the underlying source that we only call at certain times and then cache the result of, and then a getter on the stream returns the cached result.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/279#issuecomment-73749756

Received on Tuesday, 10 February 2015 18:04:31 UTC