Re: Nullable and array?

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