W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2015

Re: RTCSessionDescription and RTCIceCandidate

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Tue, 15 Sep 2015 15:15:30 -0400
To: Harald Alvestrand <harald@alvestrand.no>, Martin Thomson <martin.thomson@gmail.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <55F86E52.9020608@mozilla.com>
On 9/15/15 2:56 PM, Harald Alvestrand wrote:
> Is this because the dictionary definers have defined that {} (empty
> dictionary) should be treated the same as a missing argument, and want
> to make the possibly-missing argument explicit?

 From https://heycam.github.io/webidl/#idl-operations

"If the type of an argument is a dictionary type or a union type that 
has a dictionary type as one of its flattened member types, and that 
dictionary type and its ancestors have no required members, and the 
argument is either the final argument or is followed only by optional 
arguments, then the argument MUST be specified as optional. Such 
arguments are always considered to have a default value of an empty 
dictionary, unless otherwise specified."

Or "don't ask". Not something anyone sane would invent without staring 
down some technical limitation, I hope.

.: Jan-Ivar :.
Received on Tuesday, 15 September 2015 19:16:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:46 UTC