Syntax...

Paul Benedict pbenedict at apache.org
Fri Nov 20 16:32:31 PST 2009


Yes, I know it's #", but that doesn't matter much to me. I see the
pound sign and think it's the ugliest string escape syntax in
existence. There, I said it :-)

On Fri, Nov 20, 2009 at 5:00 PM, Rémi Forax <forax at univ-mlv.fr> wrote:
> 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