Constructor references
Collin Fagan
collin.fagan at gmail.com
Thu Jul 15 16:59:03 PDT 2010
+1, Constructor references can turn a constructor into a factory which is a
very handy tool to have. It could also remove the need in may cases to use
reflection.
Collin
On Thu, Jul 15, 2010 at 6:37 PM, Stephen Colebourne <scolebourne at joda.org>wrote:
> The latest SotL document does not mention constructor references. A
> constructor is no more than a special kind of method. Omitting it from
> JDK 7 would, I suspect, be an annoyance to developers.
>
> The obvious syntaxes are:
>
> Person#()
> Person#(String, int)
>
> or
>
> Person#<init>()
> Person#<init>(String, int)
>
> Has any consideration been given to constructor references?
>
> Stephen
>
>
More information about the lambda-dev
mailing list