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

Re: What is mandatory in RTCSessionDescription

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Tue, 19 May 2015 23:47:45 +0200
Message-ID: <CALiegfkqnQ2wkbhobn40vbrQo1mNnKgAycEn+T1ojaErq-DZwA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
2015-05-19 21:57 GMT+02:00 Martin Thomson <martin.thomson@gmail.com>:
> [Constructor (optional RTCSessionDescriptionInit descriptionInitDict)]
> interface RTCSessionDescription {
>                 attribute RTCSdpType? type;
>                 attribute DOMString?  sdp;
>     serializer = {attribute};
> };
>
> Why is type nullable here?  Because the constructor argument is optional.
>
> Why is the constructor argument optional?
>
> I'd have thought that we'd want to mark RTCSessionDescriptionInit.type
> as required, and remove this optionality here. Am I missing something?

Agreed.


-- 
Iñaki Baz Castillo
<ibc@aliax.net>
Received on Tuesday, 19 May 2015 21:48:35 UTC

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