W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

Re: Nullable and array?

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 10 May 2011 10:20:21 +1200
To: Dominique Hazael-Massieux <dom@w3.org>
Cc: public-script-coord@w3.org
Message-ID: <20110509222021.GB31720@wok.mcc.id.au>
Dominique Hazael-Massieux:
> I think the current WebIDL editors draft doesn't allow to use nullable
> arrays, as in e.g.:
> interface test {
>  attribute DOMString[] foo;
> };
> 
> Since nullable sequences are allowed, I assume this is a bug.

The T[] type already can be the value null, which is why you can’t write
“T[]?”.  I think it makes sense to revise this to remove the null as
part of http://www.w3.org/Bugs/Public/show_bug.cgi?id=10640.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Monday, 9 May 2011 22:20:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC