- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 07 Jul 2025 20:24:16 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 8 July 2025 03:24:21 UTC
domenic left a comment (whatwg/webidl#1499)
I'm not sure I fully understand what you're proposing. But if I had to guess, you are saying that
```webidl
undefined operation(optional OptionalDict dict = {}, DOMString str);
```
is good (since it allows `obj.operation(undefined, "string")` to trigger the default. And
```webidl
undefined operation(OptionalDict dict, DOMString str);
```
is bad, since it prohibits `obj.operation(undefined, "string")` for no reason.
If that is what you are saying, I agree. We should require it to be optional regardless of the position.
I am curious if this affects any existing APIs.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1499#issuecomment-3047225658
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/webidl/issues/1499/3047225658@github.com>
Received on Tuesday, 8 July 2025 03:24:21 UTC