groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: About the native-lambda branch
Date Fri, 12 Jan 2018 14:00:56 GMT
Hi Jochen,

> but I think you should then not use the closure inner class mechanism.
I remain the implementation for non-native lambda[1] to make lambda work in
legacy code, where closures are widely used. For example, `[1, 2,
3].collect(e -> e + 1)`

> I thought you need that only to enable reflection to find your inner
> classes. 
Could you make it a bit detail? To be honest, I can not get your words...

Cheers,
Daniel.Sun

[1]
https://github.com/apache/groovy/blob/8096d278f09343b8acd9d68edf521e03b28b4062/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesLambdaWriter.java#L84




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message