groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Lambda expression for Groovy 3
Date Wed, 19 Oct 2016 12:48:53 GMT


On 19.10.2016 12:34, Jesper Steen Møller wrote:
> Hi Daniel
>
> Be careful with that approach, as it won’t work for static methods — leading to very
different semantics for the two languages.
> Also, you won’t be able to support constructor references without some new AST construct,
I guess.

Normally Object.&newInstance should for that... should, but does not, 
because MethodClosure does actually only look at the static method and 
newInstance is from DGM.

bye Jochen

Mime
View raw message