Re: [heycam/webidl] Remove [LegacyArrayClass] (#291)

> before they were broken for weird reasons

The reason is simple: people couldn't agree on what forEach() and keys() and entries() should do for them, for the non-indexed-thing case.  Specifically whether it should behave like ES Array (where did the indices come from?) or ES Set (but what if the values are not unique?).

And yes, you can specify a pair iterator, and then you can explicitly choose which of the two behaviors you want, by picking whether your keys are integers or the same as your values....

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

Received on Tuesday, 7 March 2017 21:07:40 UTC