W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

Re: [WEBIDL] [Undefined] sample

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 22 May 2008 13:38:08 +0200
To: "Cameron McCormack" <cam@mcc.id.au>, "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <op.ubjzxuu764w2qv@annevk-t60.oslo.opera.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 May 2008 11:38:56 GMT