- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 29 May 2018 23:42:58 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 30 May 2018 06:43:20 UTC
The main reason we removed `[ArrayClass]` is that tagging it on things we wanted it for, e.g., `NodeList`, wasn't web-compatible. And for new lists we generally want folks to return arrays. So therefore our options seem to be: 1. Accept the inefficiency and slight inelegance of `[...obj].find(callback)` (and perhaps try to optimize it if it becomes a pattern). 2. See if TC39 is interested is interested in a more elegant and efficient API for objects that have `@@iterator`. @domenic might know this? 3. Test which `Array` properties we can add to IDL iterators without breaking the web and add them. -- 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/561#issuecomment-393048033
Received on Wednesday, 30 May 2018 06:43:20 UTC