- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 26 Jan 2021 12:39:37 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 26 January 2021 20:39:49 UTC
I'm -1 on this, as comments (i.e. things which don't impact the binding generation) are best done as actual comments. You can write ``` readonly attribute ReadableStream /* of ReceiveStream */ incomingUnidirectionalStreams; ``` or similar if you'd prefer brevity. In particular, the problem here is that you could write `ReadableStream<bool>` in your IDL, or `ReadableStream<ReceiveStream>`; it wouldn't matter. There's nothing in the spec infrastructure, or implementation infrastructure, to enforce that your `ReadableStream` contains a given type. We're actually discussing perhaps removing the `<T>` syntax for promises as well, since we've discovered that implementations don't seem to do anything with it: see #943 and #782. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/951#issuecomment-767813592
Received on Tuesday, 26 January 2021 20:39:49 UTC