Re: Usage of null

> Do you mean that something like this from the Node interface:
> 
>          attribute DOMString nodeValue; // may be null
> 
> is a problem?

Exactly. In CORBA, a sequence<unsigned short> may not be null. It is,
mathematically speaking, a union of
- the empty sequence
- Z (unsigned short)
- Z x Z 
- Z x Z x Z
...

null is not a possible value of a sequence. In the specific example,
is there a need to distinguish between the empty string as a
nodeValue, and a null nodeValue? Otherwise, saying 'may be empty'
sounds better.

Regards,
Martin

Received on Monday, 18 September 2000 17:00:06 UTC