Re: [whatwg/streams] Brainstorming a buffer-reusing version of writable streams (#495)

> Please Return This Buffer (PRTB)

Good, but I'd omit please as BYOB doesn't have it than adding it to make it four-letter.

I also had some ideas. https://github.com/whatwg/streams/issues/329#issuecomment-106780286. Buffer Providing and maybe Buffer Vending, Buffer Lending. I think these are descriptive but aren't well aligned with the naming style of BYOB. That said, as these new ideas are not well known idiom compared to BYOB in English, right? If so, it might be ok not to take alignment with BYOB into account.

Other ideas... "Return My Buffer" might correspond well with "Bring your own buffer".

"Return the Buffer When Done", "Write Then Return", "Write To My Buffer" etc. etc.

> readable.getReader({mode:"PRTB", readThis(buffer) { return promiseWhenDoneReading(buffer); }});

Nice. `buffer` can be a transferred one and is a view with (possibly) modified byteLength, right?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/495#issuecomment-256973218

Received on Friday, 28 October 2016 17:00:20 UTC