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

@bathos 

> While I don’t see any trouble for signatures defined this way from the start, the allowance might create the false impression that changing existing signatures in this manner is safe.

Is it any more risky than taking a string argument and introducing an object type? That means code already using that object in the wild will go from being `toString`'d to something else.

Although, I guess in the wild, folks might be using a constructor function as a dictionary (via 'static' properties). That would pretty significantly change behaviour.

> just FYI: in the Web IDL sense of the term, `addEventListener` doesn’t take a “callback function” but rather a “callback interface”

Yeah, it seems like the "callback interface" stuff is only for legacy use.

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

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

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

Received on Sunday, 18 September 2022 14:59:00 UTC