Problem with method references

Collin Fagan collin.fagan at gmail.com
Fri Jan 14 05:10:35 PST 2011


+1 for constructor references, that would be fantastic.

On Fri, Jan 14, 2011 at 4:37 AM, Stephen Colebourne <scolebourne at joda.org>wrote:

> 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