W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

Re: Usage of null

From: Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>
Date: Mon, 18 Sep 2000 22:56:11 +0200
Message-Id: <200009182056.WAA00965@loewis.home.cs.tu-berlin.de>
To: kim@sqwest.bc.ca
CC: www-dom@w3c.org
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT