groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <>
Subject Re: About polish the generics type syntax for closure
Date Wed, 13 Feb 2019 14:07:53 GMT
Thanks for your suggestion.

If the argument type is Function and the parameter type is Closure, implicit
coerce will happen, thus the performance will be impacted somehow. Certainly
we can use native lambda to avoid the performance issue. 
In addition, Function accepts only one parameter, a bit limited for general

In short, Closure can not be replaced completely.


Apache Groovy committer 
Twitter: @daniel_sun 

Sent from:

View raw message