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

> IMO if you want an array, you should not be using iterable<>. You should be using an array. iterable<> is when you need to create some completely custom collection, e.g. DOMTokenList (a type of set), URLSearchParams (a multi-map), or when you need to adapt legacy array-likes.

Or when you want something that looks like an Array but actually implements the same sort of typechecking that every single other object in WebIDL is allowed to implement...

-- 
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-393709415

Received on Thursday, 31 May 2018 23:03:09 UTC