Re: [whatwg/webidl] WIP: switching maplike/setlike to use infra maps and sets (PR #1138)

Okay, finished the work I wanted to do, and addressed @domenic's editorial concerns they've raised so far. This PR is ready for proper review now.

I'm putting off defining "map setting steps"/etc; the text already defines that specs that want to provide their own set/delete/etc should just provide normal IDL methods of those names, so that should suffice.

I'd like to, probably in a follow-on issue, define all these built-ins in terms of the existing ["create an operation function"](https://webidl.spec.whatwg.org/#dfn-create-operation-function) algo, as that does all the nice setup that I'm currently doing by hand in each of the definitions, but that probably requires rejiggering the whole thing into imperative style. (I was gonna write an abstraction algo that folded away most of the boilerplate, but it turns out that "create an operation function" *is* that abstraction algo.) The current style is how the spec currently defines these operations, so keeping it as-is will at least not make things worse for now.

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

Message ID: <whatwg/webidl/pull/1138/c1116625858@github.com>

Received on Tuesday, 3 May 2022 20:50:36 UTC