ES4 draft: Map

Lars Hansen lhansen at adobe.com
Mon Mar 3 05:48:05 PST 2008


> -----Original Message-----
> From: P T Withington [mailto:ptwithy at gmail.com] On Behalf Of 
> P T Withington
> Sent: 3. mars 2008 13:47
> To: Lars Hansen
> Cc: Waldemar Horwat; es4-discuss at mozilla.org
> Subject: Re: ES4 draft: Map
> 
> On 2008-03-03, at 02:26 EST, Lars Hansen wrote:
> 
> >  function get(key:K, default:(V|undefined)=undefined):(V|
> > undefined) ...
> 
> If V? is shorthand for (V|null), what is the shorthand for 
> (V|null| undefined)?  Perhaps V?@%#$!  Well, at least that 
> expresses how I feel about a language with 'two nulls'.  :P

There is no shorthand for (V|null|undefined), though if V is 
a nullable type then (V|undefined) works just as well.  

--lars



More information about the Es4-discuss mailing list