Problem with method references
Stephen Colebourne
scolebourne at joda.org
Fri Jan 14 02:37:32 PST 2011
On 14 January 2011 09:41, Rémi Forax <forax at univ-mlv.fr> wrote:
> It remember something, do we have a plan to support constructor call, I
> mean not
> constructor call from a constructor (this(...)) but constructor call
> that return a newly
> created object.
>
> Something like: new#Integer(int)
> which should be typed (int) -> Integer.
The new#Integer(int) syntax would seem a little backwards to me, as
the element after the # is the method name.
I'd recommend:
Integer#(int)
or
Integer#new(int)
I do think this is an essential feature when adding method references.
Stephen
More information about the lambda-dev
mailing list