Re: [streams] What should we call ReadableByteStream.prototype.getBYOBReader()? (#294)

I have spun off a lot of that stuff into https://github.com/whatwg/streams/issues/375. That leaves this thread for its original purpose, bikeshedding the name :).

So you think it should be

```
rbs.getReader({ mode: "byob" });
rbs.getReader({ mode: "default" }); // or... "pull"?
rbs.getReader(); // equivalent to default
```

The other alternative we were thinking was

```js
rbs.getReader({ feedBuffers: true });
rbs.getReader({ feedBuffers: false });
rbs.getReader(); // equivalent to false
```

but I think that you are right that future expansion is better served by a string enum.

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

Received on Monday, 6 July 2015 07:08:31 UTC