union type syntax

Lars Hansen lhansen at adobe.com
Tue Mar 18 09:07:59 PDT 2008


The parens are required.  Long discussion here:
http://bugs.ecmascript.org/ticket/308
 
--lars

> -----Original Message-----
> From: es4-discuss-bounces at mozilla.org 
> [mailto:es4-discuss-bounces at mozilla.org] On Behalf Of Peter Hall
> Sent: 18. mars 2008 09:58
> To: es4-discuss at mozilla.org es4-discuss
> Subject: union type syntax
> 
> Now that union type uses "|" instead of "," for the 
> delimiter, could the parentheses be made optional? It seems 
> like parentheses are used elsewhere only for grouping and 
> function calls/definitions.
> 
>     UnionType ::=  Type ( "|" UnionType )?
> 
> which should be easily distinguishable from a bitwise OR expression.
> 
> 
> Peter
> _______________________________________________
> Es4-discuss mailing list
> Es4-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es4-discuss
> 



More information about the Es4-discuss mailing list