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

@jeremyroman 

> I suspect this change could be made in a web-compatible way, but FWIW you could technically use a callback function as a dictionary, since functions are objects.

Ohh interesting. I could probably hack this through in the prose.

> As a consistency point, EventTarget/addEventListener looks more like your second example -- but I don't think that pattern is ubiquitous.

Yeah, there's also `setTimeout(callback, delay)`, but I think these should be considered anti-patterns for newer APIs.



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

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

Received on Sunday, 18 September 2022 02:22:08 UTC