First code then select Syntax

Ali Ebrahimi ali.ebrahimi1781 at gmail.com
Sun Nov 22 20:07:32 PST 2009


On Sun, Nov 22, 2009 at 7:21 PM, Vladimir Kirichenko <
vladimir.kirichenko at gmail.com> wrote:

> Ali Ebrahimi wrote:
>
> > But Criteria API exists in java (JPA 2).
> >
> > I think lang features must be help to highly readable codes.
>
> It requires explression trees implementation and is not a part of
> current discussion. And anyway "SQL-like" syntax is not the best way to
> do it. Personally I dont like the way it is in C#.
>
> > c)  array.sort((int a, int b) a > b);
> >  d) boolean(int,int) p = (int a, int b) a > b;
>
> no return type. If it's inferred, why not inferring argument types?
>

In current Neal's proposal return types can be inferred:

#int(int,int) plus = #(int x, int y) x+y;


> And also try it for, you'll see a problem:
>
> fun boolean p => true;
>
> I disagree with adding new keyword.

>
> --
> Best Regards,
> Vladimir Kirichenko
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091123/ca70f930/attachment.html 


More information about the closures-dev mailing list