streams icon indicating copy to clipboard operation
streams copied to clipboard

Early draft of WritableStream "Design Philosophy" section

Open ricea opened this issue 8 years ago • 2 comments
trafficstars

This is supposed to help implementors and others understand the design principles.

Markup isn't done properly yet, so please evaluate the text only.


Preview | Diff

ricea avatar Mar 29 '17 09:03 ricea

@domenic @tyoshino Suggestions, comments, radical changes all welcome.

I uploaded it as a whatwg/streams branch to make it easy to look at the preview, which should show up at https://streams.spec.whatwg.org/branch-snapshots/writable-streams-design-philosophy/ eventually.

ricea avatar Mar 29 '17 09:03 ricea

I added another item, "Queued calls to writer methods such as write() are not cancelled when writer.releaseLock() is called. This makes them easy to use in a "fire and forget" style." which raises the question of exactly how much detail belongs in this section.

Personally I'm happy with it being quite inclusive, but I don't think it should be an exhaustive list of every design decision we ever made.

Maybe I should rephrase it as "Fire-and-forget style usage is supported. Therefore..."

ricea avatar Mar 30 '17 05:03 ricea