Re: [whatwg/webidl] Maplike/setlike iterators shouldn't use MapIteratorPrototype/etc (Issue #1142)

Oh also, note:

> that means that engines have to either use the same underlying data structure for those things as for Maps,

This would be completely fine, probably ideal in fact. This change was meant to make messing around with the contents of a maplike/setlike actually doable for human spec editors, rather than requiring everyone to know and get perfectly right the precise dance of algos that manipulating ES objects requires. (For example, I was trying to write <https://tabatkins.github.io/css-toggle/#dom-csstogglemap-set> when I realized it would be really fiddly and annoying to both read and write, which caused me to come shave this yak first; with the new IDL stuff, the algorithm was very easy to write *and* is easy to understand for the reader.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1142#issuecomment-1119122259
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1142/1119122259@github.com>

Received on Thursday, 5 May 2022 23:07:02 UTC