Re: [whatwg/streams] Export "set up reader/writer" algorithms for other specs (PR #1370)

@MattiasBuelens commented on this pull request.



> @@ -7133,6 +7133,16 @@ failures should be handled by the calling specification.
  <p class="note">This will throw an exception if |stream| is already [=ReadableStream/locked=].
 </div>
 
+<div algorithm>
+ <p>To <dfn export for="ReadableStreamDefaultReader">set up</dfn> a newly-[=new|created-via-Web IDL=]

I think the distinction is between "created via Web IDL's [new](https://webidl.spec.whatwg.org/#new)" and "created via a [constructor operation](https://webidl.spec.whatwg.org/#idl-constructors)". As far as I know, specifications usually do not call constructor operations themselves, those are only called by JavaScript code. For example, ["create a `Response` object"](https://fetch.spec.whatwg.org/#response-create) creates a new `Headers` object by setting its fields directly, rather than going through the `new Headers()` constructor.

If you have a better suggestion for making this less confusion, I'd love to hear it. I'm bad at naming things. 😅

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1370?email_source=notifications&email_token=ACLYVMM7IJUHQZCCYFRLITD4XEYJRA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIMJVG44TMMBRGM22M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS6XA4S7OJSXM2LFO5PW433UNFTGSY3BORUW63TTL5RWY2LDNM#discussion_r3126929573
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1370/review/4157960135@github.com>

Received on Wednesday, 22 April 2026 21:09:48 UTC