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

Re: [WEBIDL] [Undefined] sample

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 23 May 2008 15:37:21 +1000
To: "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <20080523053721.GA18592@arc.mcc.id.au>

Anne van Kesteren:
>>> The example for [Undefined] should probably say [Null=Null,
>>> Undefined=Null] because just saying [Undefined=Null] doesn't make much
>>> sense.

Cameron McCormack:
>> Because why would you want undefined to map to null, but null to map to
>> "null"?

Anne van Kesteren:
> Yeah, that's seems odd.

OK, changed it.

>> 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.

Suggestions welcome. :-)

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 23 May 2008 05:38:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:27 UTC