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

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall
> Sent: 18. mars 2008 09:58
> To: [email protected] 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
> [email protected]
> https://mail.mozilla.org/listinfo/es4-discuss
> 
_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to