Re: [whatwg/webidl] Add distinguishable state for cb and dictionary-like (PR #1353)

@jeremyroman commented on this pull request.



> +        1.  A [=callback function=] that does not have
+            [{{LegacyTreatNonObjectAsNull}}] extended attribute is
+            distinguishable from a dictionary-like category object based on
+            whether the object is [=ECMAScript/callable=]. When selecting a

There are no values in this algorithm, only types. So the normative text here should describe dictionary-like _WebIDL types_, not ECMAScript values (objects or otherwise) Consequently, this algorithm cannot depend on whether the value is `[=ECMAScript/callable=]` (though it could be noted informatively). The value conversion and overload resolution algorithms already do use `[=ECMAScript/callable=]` where appropriate.

By a full stop, I mean the punctuation mark, a period (.). I think the first sentence of this bullet point should be the normative text about how, given two WebIDL types, an implementation can tell whether they are distinguishable. Any notes about how that corresponds to value conversion and overload resolution can follow in a separate sentence or parenthetical, if necessary.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1353#discussion_r1300487131
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1353/review/1587617863@github.com>

Received on Monday, 21 August 2023 18:21:35 UTC