groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Garcia <mario.g...@gmail.com>
Subject Re: Automatic closure coercion and delegate
Date Wed, 04 May 2016 05:46:16 GMT
+1

2016-05-03 10:29 GMT+02:00 Jochen Theodorou <blackdrag@gmx.org>:

> On 03.05.2016 08:26, C├ędric Champeau wrote:
> [...]
>
>> repositories { // Action<? super RepositoryHander
>>     maven { Action<? super MavenRepository>
>>          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 abstract classes should be straightforward. For
>> static compilation, it's going to be more complicated and probably
>> requires transparently invoking a configurer (like Gradle does).
>>
>
> the proxy generation will work the same, I guess you are talking about the
> direct method calls inside the closure as well es letting it pass static
> compilation. But I still don't understand what you mean by configurer
>
> bye Jochen
>
>
>

Mime
View raw message