Re: [heycam/webidl] Need pattern for feature detecting dictionary members (#107)

> Do we want to allow enumeration of supported dictionary/enumeration members? I can see arguments either way, without a compelling use case I'd probably prefer we keep this scoped to feature detection.

I'm confused - enumerating the supported dictionary members is *literally the request here*.  (Or at least, being able to ask if a given name is a supported dictionary member.)  I'm 100% against anything attempting to be smarter such that it can no longer be trivially automated with no human intervention required.

> I think we should do enums separately by the way. They are either ignored (setters) or the method throws, which makes them reasonably detectable. Apart from that, they would require a different API.

Why would they require a different API? Afaict they'd have the identical "set of supported names for this type" API.

---
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/107#issuecomment-212140751

Received on Tuesday, 19 April 2016 21:40:24 UTC