Syntax...
Rémi Forax
forax at univ-mlv.fr
Fri Nov 20 15:21:22 PST 2009
Le 20/11/2009 23:51, Neal Gafter a écrit :
> On Fri, Nov 20, 2009 at 3:05 PM, Rémi Forax <forax at univ-mlv.fr
> <mailto:forax at univ-mlv.fr>> wrote:
>
> Le 20/11/2009 20:44, Neal Gafter a écrit :
>> 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 ^.
>
> I vote for any syntax that clearly differentiate between lambda
> and function type.
>
>
> Remi-
>
> All of these syntax forms do. Either there's a type between the # (or
> ^) and the open paren (for a function type) or there isn't (for a
> lambda). Is that clear enough for your taste?
>
> -Neal
Sorry, I was not clear.
I am able to parse the current syntax and any parser will be able too,
but I am not sure everyone will be able to do the same.
One thing I have observed when teaching C is that the first problem when
explaining pointer was the C syntax.
This syntax use * when you declare a pointer type and * when you want to
dereference
a pointer variable. This syntax create unnecessary confusion.
If the syntax of closure use a symbol for lambda and another for
function type,
I will be happy.
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091121/b87f4820/attachment.html
More information about the closures-dev
mailing list