Re: [whatwg/webidl] Specify that dictionaries can't be the type of attr/constant (#940)

Given the description of consts says:

> The type of a constant (matching ConstType) must not be any type other than a primitive type. If an identifier is used, it must reference a typedef whose type is a primitive type.

What is the purpose of these changes with regard to consts?

There are more types which cannot be the type of a constant (object, symbol, DOMString, ByteString, USVString, FrozenArray, ObservableArray, ArrayBuffer, DataView, Int32Array, ...) than the handful to which the new "can't be used as..." text is added. What is the distinction being made?

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

Received on Wednesday, 13 October 2021 16:25:53 UTC