Re: [whatwg/webidl] Mandate a default value for boolean dictionary members? (Issue #1485)

saschanaz left a comment (whatwg/webidl#1485)

NeedsUndefined would be kinda boolean specific so TriState would probably be more comprehensible.

Splitting NeedsNull and NeedsNullAndUndefined sounds like the former will also block nullable property with default value (and thus no implicit undefined). I don't see a strong reason to do so with an extra extattr. Thoughts?

```webidl
dictionary Foo {
  MyObject? myObject = null; // IMO this probably is more intentional than accidental
};
```

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

Message ID: <whatwg/webidl/issues/1485/4296221426@github.com>

Received on Wednesday, 22 April 2026 12:31:01 UTC