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

> I don't understand why we'd restrict promises from being held by these types.

I was thinking that in the absence of a definite use case, the added complexity of specifying the constraints right wouldn’t be worthwhile — shouldn’t `FrozenArray<Promise<SomeDictionary>>` be invalid just as `FrozenArray<SomeDictionary>` should be? But it’s true that e.g. `FrozenArray<Promise<SomeInterface>>` wouldn’t be problematic, it’s just not clear to me when it would have any utility.

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

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

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

Received on Wednesday, 14 December 2022 02:44:27 UTC