Syntax...

Rémi Forax forax at univ-mlv.fr
Fri Nov 20 15:00:35 PST 2009


Le 20/11/2009 21:21, Paul Benedict a écrit :
> Neal,
>
> If anything, I would tell the JSR-292 folks to use ^ over # for their
> exotic identifiers ;-) But in terms of the closures, I think # is kind
> of the universal identifier of a method .. especially since I saw that
> method literals (using #) are also in JDK 7.
>
> Paul
>    

Hi Paul,
Exotic identifiers start with #" and not only #, so there is no problem,
the lexer is able to handle that.

Rémi

> On Fri, Nov 20, 2009 at 1:44 PM, Neal Gafter<neal at gafter.com>  wrote:
>    
>> Folks-
>>
>> The 0.6a syntax is based on CLang, 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:
>>      



More information about the closures-dev mailing list