Project Lambda: Java Language Specification draft 0.1.5

Mark Mahieu markmahieu at googlemail.com
Tue Feb 16 03:35:16 PST 2010


On 16 Feb 2010, at 08:45, Paul Benedict wrote:

> My only advice is to keep simplicity and the obvious in mind. I think
> the "object.()" syntax violates the principle of least surprise -- I
> was surprised to suddenly see method calls without a method name. 


On 16 Feb 2010, at 10:51, <David.Moss at ubs.com> wrote:
> Furthermore, the var.() call is perfectly appropriate for
> an anonymous function, as it has no name.


That's an important difference.  Arguably 'surprising' when thought of as a method call, yet 'perfectly appropriate' when seen as a function call.

Regards,

Mark



More information about the lambda-dev mailing list