Re: ACTION-88: Remove '?' characters from all dictionaries

On 25 November 2013 04:35, Adam Bergkvist <adam.bergkvist@ericsson.com> wrote:
> Do you think it's ok if chann.maxRetransmits (the attribute on the
> DataChannel) is null if not initialized (by the dictionary).

Do you mean that you are having trouble with the defaults?

Omitting maxRetransmits will result in nullptr in C++, null in Java,
and undefined in JavaScript, unless you specify it as:

dictionary blah {
  (double or Range) maxRetransmits? = null;
}

In which case the JavaScript value changes to null.  That is
unnecessary.  Define it as:

dictionary blah {
  (double or Range) maxRetransmits;
}

Then leave the language bindings to do their magic.  Yes, that means
that  { maxRetransmits: null } is an invalid constraint.  That's a
good thing.

Received on Monday, 25 November 2013 18:02:10 UTC