Re: [whatwg/webidl] Allow dictionaries and callbacks to be distinguishable (Issue #1191)

> and keeping the current logic whereby the IsCallable check happens before the dictionary conversion

That’s what I’d expect — the same “fall through” pattern as sequence vs dictionary (or boolean vs number, etc).

While I don’t see any trouble for signatures defined this way from the start, it’s true that the allowance could create the false impression that changing existing signatures in this manner is safe. Maybe would merit a note pointing out the risk of extending established dictionary-only signatures with overloading/unions which add callback functions (or sequences)?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1191#issuecomment-1250150830

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1191/1250150830@github.com>

Received on Saturday, 17 September 2022 22:40:46 UTC