Optional brackets around lambda expression
ss at comp.lancs.ac.uk
Fri Jun 17 23:59:06 PDT 2011
On 17/06/11 10:55, Rémi Forax wrote:
> On 06/17/2011 01:30 AM, Steven Simpson wrote:
>> Still thinking of stripping away superfluities, can you get away without
>> '->', provided you have brackets around the parameters? I think no, as
>> "(x) -x" would be troublesome.
> Is (x) -x a cast ?
No, as x is not a primitive type, and the grammar for a cast to a
reference type is:
"(" ReferenceType ")" UnaryExpressionNotPlusMinus
I was thinking of simply (x-x). Just confirming that it was a step too far.
More information about the lambda-dev