Control Invocation Syntax++

Bruce Chapman bruce.chapman at nec.co.nz
Tue Dec 22 13:10:48 PST 2009


Peter Levart said:

First, the syntax of parenthesized expression migh allow the expression in
it to be optional:

    ParExpression:
        ( [BlockStatements] Expression ) 
        ( BlockStatements )


I respond:

But a ParExpression is a kind of expression, so in your second form, what
would be the value and type of that expression since statements don't have
value or type?  I guess there is no answer which is why the expression is
mandatory.


Bruce Chapman



More information about the closures-dev mailing list