Re: [WEBIDL] [Undefined] sample

On Thu, 22 May 2008 13:22:50 +0200, Cameron McCormack <cam@mcc.id.au>  
wrote:
> Anne van Kesteren:
>> The example for [Undefined] should probably say [Null=Null,
>> Undefined=Null] because just saying [Undefined=Null] doesn't make much
>> sense.
>
> Because why would you want undefined to map to null, but null to map to
> "null"?

Yeah, that's seems odd.


> Or because undefined would map to null, which then would in
> turn map to "null"?  (The latter isn’t my intention.)

I didn't think of this one, that seems even weirder :-)


As a data point, for XMLHttpRequest a shorthand for [Null=Null,  
Undefined=Null] would be nice. That's the only one of this  
[Null]/[Undefined] madness I need and I have to write it out four times.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Thursday, 22 May 2008 11:38:56 UTC