Re: Proposal: allow @DelegatesTo on Map arguments

2016-10-04 Thread Shil Sinha
+1 I was writing a type checking extension that did this but it would much better if it were built into the compiler itself On Tue, Oct 4, 2016 at 11:18 AM, Jochen Theodorou wrote: > sounds good > > > On 04.10.2016 14:56, Graeme Rocher wrote: > >> Hi all, >> >> I would like to propose adding sup

Re: Proposal: allow @DelegatesTo on Map arguments

2016-10-04 Thread Jochen Theodorou
sounds good On 04.10.2016 14:56, Graeme Rocher wrote: Hi all, I would like to propose adding support for @DelegatesTo on named arguments (Map types) in order to improve static compilation support for builders. I have written up https://issues.apache.org/jira/browse/GROOVY-7956 For the proposa

Re: Proposal: allow @DelegatesTo on Map arguments

2016-10-04 Thread Andrew Bayer
I was just wishing for this a couple weeks ago! I'd love to see this added. A. On Oct 4, 2016 2:57 PM, "Graeme Rocher" wrote: > Hi all, > > I would like to propose adding support for @DelegatesTo on named > arguments (Map types) in order to improve static compilation support > for builders. I h

Proposal: allow @DelegatesTo on Map arguments

2016-10-04 Thread Graeme Rocher
Hi all, I would like to propose adding support for @DelegatesTo on named arguments (Map types) in order to improve static compilation support for builders. I have written up https://issues.apache.org/jira/browse/GROOVY-7956 For the proposal. Here are some considerations: * Keys have to be Stri