Re: Automatic closure coercion and delegate

2016-05-03 Thread Mario Garcia
+1 2016-05-03 10:29 GMT+02:00 Jochen Theodorou : > On 03.05.2016 08:26, Cédric Champeau wrote: > [...] > >> repositories { // Action> maven { Action >> url '' >> } >> } >> > > I see... I would feel much better if this was done by a special interface, >

Re: Automatic closure coercion and delegate

2016-05-03 Thread Jochen Theodorou
On 03.05.2016 08:26, Cédric Champeau wrote: [...] repositories { // Action url '' } } I see... I would feel much better if this was done by a special interface, coming from Groovy... maybe even a trait. But I guess this is not really an option. [...] Doing the same for

Re: Automatic closure coercion and delegate

2016-05-03 Thread Cédric Champeau
2016-05-02 18:11 GMT+02:00 Jochen Theodorou : > On 02.05.2016 16:44, Cédric Champeau wrote: > [...] > >> Of course, it may look a bit superficial but it is super important for >> nice DSLs like in Gradle. >> > > could you give an example of a more complex closure usage? >