Syntax...
Neal Gafter
neal at gafter.com
Fri Nov 20 11:44:25 PST 2009
Folks-
The 0.6a syntax is based on
CLang<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-August/002670.html>,
but with # instead of ^. I kind of like ^ better, but that's slightly
inconsistent with method references, which must use # because (a) that's the
javadoc syntax, and (b) it would be ambiguous to use ^.
How would you feel about using ^ instead of # for function types and
lambdas:
*Expression:**ExpressionLambda**Primary:**StatementLambda* *ExpressionLambda
*:*^* ( *FormalParametersopt* ) *Expression**StatementLambda*: *^* ( *
FormalParametersopt* ) *BlockStatement* *Type:**FunctionType**FunctionType*:
*^ **Type* ( *TypeListopt** )* *FunctionThrowsopt* *TypeList:**Type
Type* , *TypeList**FunctionThrows*:throws *FunctionExceptionTypeList* *
FunctionExceptionTypeList:* *ExceptionType
FunctionExceptionTypeList | ExceptionType * *Primary:**MethodReference**
MethodReference:**Primary *# *TypeArgumentsopt Identifier* ( *TypeListopt* )
Cheers,
Neal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091120/0ebc6257/attachment.html
More information about the closures-dev
mailing list