A syntax option (function types versus arrays)

Bob Foster bobfoster at gmail.com
Fri Mar 12 12:49:21 PST 2010


Joshua Block wrote:
>In my view, *all *of the Currying examples are rather ugly.

Actually, Neil Gafter's is quite attractive. I would certainly have more
than one date with it.

> Perhaps the Currying itself is to
> blame, and ordinary Java programmers won't be writing this kind of code.
If
> this is so, then I suppose we should be more concerned with the syntax of
> simpler examples.

Then drop curry, but don't go forward with a syntax that would allow one to
find something like:

##R()(throws E) (#R(A)(throws E), A) curry = ...

in a Java program. Your 'ordinary Java developer' may not write this, but
they will be forced to read and maintain it. Beware of simple examples.

> I think the currently proposed syntax (!) is pretty good
> for simple examples.

No, it's just pretty easy to parse. Otherwise, unlovely.

Cheers!

Bob


More information about the lambda-dev mailing list