Re: [heycam/webidl] iterable's should have more than just forEach() (#561)

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