- From: Tab Atkins Jr. <notifications@github.com>
- Date: Wed, 01 Mar 2017 12:55:21 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 1 March 2017 23:04:07 UTC
That's equivalent to doing an array cast (`el.toArray().map()` vs `[...el].map()`). It's just one more step that people have to do to use the value "normally". This was bad when querySelectorAll() did it, and it's bad here, too. Maplikes/setlikes get the full suite of Map/Set functions automatically; you don't need to cast them into a Map/Set to use them. People very often want to map/forEach/etc a sequence-ish value. I know that getting `a[0]` to work on an array-like is out of the question right now (grr), but we can do everything else with fairly minimal pain. -- 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/291#issuecomment-283467040
Received on Wednesday, 1 March 2017 23:04:07 UTC