> -----Original Message----- > From: P T Withington [mailto:[EMAIL PROTECTED] On Behalf Of > P T Withington > Sent: 3. mars 2008 13:47 > To: Lars Hansen > Cc: Waldemar Horwat; [email protected] > 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 [EMAIL PROTECTED] 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 _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
