Re: [mediacapture-main] Is there any sense in having defaults for SupportedCapabilities?

Having default values absolutely make sense, because once implemented,
 it always returns true.

There are real beneficial effects here: The default in webidl causes 
webidl binding code to furnish the dictionary with true values 
implicitly whenever an instance is created, whether returning 
dictionaries to content or taking them as arguments, doesn't matter. 
This works in Mozilla's webidl compiler, and I would venture it works 
everywhere given the limited number of ways to implement this.

If anything, I would remove the prose instead, since English is 
inferior to WebIDL here. In fact, zero code is needed in the Firefox 
implementation. Take a look, it's pretty neat: 
http://mxr.mozilla.org/mozilla-central/source/dom/media/MediaDevices.h#37

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/293#issuecomment-169040860
 using your GitHub account

Received on Tuesday, 5 January 2016 15:49:48 UTC