Re: [whatwg/webidl] FrozenArray<SomeDictionary> seems like a bad idea. (Issue #1243)

> The name might be fine if we could clarify a bit where it says _"A [frozen array type](https://webidl.spec.whatwg.org/#dfn-frozen-array-type) is a parameterized type whose values are references to objects that hold a fixed length array of **unmodifiable** values."_

Agreed, that sentence seems actively misleading.

> The only thing to dispel this seems to be: _"There is no way to represent a constant frozen array value in IDL."_ — which reads like a WebIDL bug more than any guiding design choice

That's just due to the fact that Web IDL's constant grammar is very limited: you can do basic stuff like `true`, `false`, `1.0`, and `[]`, but nothing else.

> (are non-constant interfaces +1 -1?)

You mean, interfaces with non-readonly properties? Those are totally fine!

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

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

Message ID: <whatwg/webidl/issues/1243/1352434992@github.com>

Received on Thursday, 15 December 2022 01:20:05 UTC