Re: Upgrade of TC server

2016-10-17 Thread daniel_sun
That's great! Thank you, Cédric. Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Upgrade-of-TC-server-tp5736156p5736168.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Lambda expression for Groovy 3

2016-10-17 Thread daniel_sun
Hi all, Lambda expression for Groovy has been completed with a little limitation, which is due to the existing closure whose parameter list can be ambiguous to lambda expression, e.g. {a -> a} which can be parsed as a lambda expression in a block, but we expect it a closure. In order to res

Re: Lambda expression for Groovy 3

2016-10-17 Thread Jochen Theodorou
On 17.10.2016 17:40, daniel_sun wrote: Hi all, Lambda expression for Groovy has been completed with a little limitation, which is due to the existing closure whose parameter list can be ambiguous to lambda expression, e.g. {a -> a} which can be parsed as a lambda expression in a block,

Re: Lambda expression for Groovy 3

2016-10-17 Thread daniel_sun
Hi Jochen, I agree with you that the parentheses is not that groovy when lambda expression is a method parameter. In the past two days, I tried to achieve the ideal implementation through a variety of ways, but some code have to be duplicated, which is not elegant for the new parser.