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

- "acquire" sounds like receiving some exclusive right to me more than "get". So, I understand youennf's point. But maybe it's just because I see "acquire"s in texts discussing mutex locks most. I'm not English native so don't know the nuance in general.
- "lock" is just a needed side-effect (part of) for getting the exclusive read access. The main functionality of the interface from the view point of developers is to read data. So, inclusion of "lock" doesn't sound so good to me.

I agree we should use some better name if possible that implies:
- start reading
- acquire read access
- create, attach and return a reader

But I don't come up with anything that is as short and simple as "getReader".

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

Received on Tuesday, 31 March 2015 05:54:33 UTC