- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 31 Jan 2018 10:50:04 +0000 (UTC)
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 31 January 2018 13:04:10 UTC
I think the main problem here is that you are very interested in type-checked arrays, but ECMAScript doesn't provide them and nobody else seems motivated enough to solve this problem. Furthermore, even a normal subclassed array would not help you, as some of these interfaces already inherit. The other differences is that you are interested in having type-checked intermediate values, whereas the rest of the platform mostly performs that checking when values get applied. Though sometimes there are intermediate interfaces available, such as `Headers`, but you can pass its constructor values straight to `fetch()`, `Request`, and `Response` too. If `Headers` was a list it would have had a similar design problem as you face here. The advice I remember from TC39 is that even in that case, don't require a `Proxy` still applies, and until someone actually does the due diligence of working it through with them it's hard to support this. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/345#issuecomment-361895571
Received on Wednesday, 31 January 2018 13:04:10 UTC