[WEBIDL] nullable dictionary members

Hi Cameron,

I have a question about the use of *nullable* type for dictionary
definition.

Having said that dictionary members are inherently optional by definition,
is it meaningful (and valid) to mark optional fields as nullable?

For example,

dicationary Foo {
    DOMString iWantToBeRequired = "Default";
    DOMString? iWantToBeNullable;
    DOMString iAmAlreadyOptional;
};

Do the two dictionary members "iWantToBeNullable" and "iAmAlreadyOptional"
semantically make any difference?

I was thinking spec writers sometimes encounter situations where they would
like to explicitly describe certain dictionary members are required while
others are not.

Regards,
Jungkee



Jungkee Song
Samsung Electronics

Received on Thursday, 16 August 2012 02:05:02 UTC