union type syntax

Peter Hall peter.hall at memorphic.com
Tue Mar 18 08:57:58 PDT 2008


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



More information about the Es4-discuss mailing list