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

Those five cases aren't distinguished in any particular way - the need exists *any time we add to a dictionary*. Most dictionaries won't be expanded, true; they generally get defined once and then never touched again. But *any* dictionary *could* be expanded. Having to recognize which ones have been expanded, and figure out the unique key-testing method that each one has *hopefully* remembered to define for itself as soon as the first editor added to the dictionary, is not a good thing to foist on authors, and not a particularly dependable thing to require spec authors to remember to do.

If we're afraid of putting all the dictionary names on the global, we can always stuff it into a single method that takes a dictionary name and a key name, so there's no chance of future collisions.

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

Received on Monday, 1 October 2018 03:02:40 UTC