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

The reason I hesitate, is I don't consider a dictionary to be a first class API.

Someone once told me, *"you don't *have* to use dictionaries. Use `object`. Problem solved."* Their point being (I think) was that WebIDL defines dictionaries to encourage certain API patterns and discourage others. Therefore, it's not always sufficient to have a problem. The question is: is it a good pattern? For example, is *share()* really several methods in one? Might a discrete *shareFile()* method have been cleaner? I'm not saying it is, just using it as an example.

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

Received on Tuesday, 16 October 2018 21:20:08 UTC