groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Required named parameters in constructor?
Date Tue, 19 Apr 2016 06:20:35 GMT
On 19.04.2016 05:21, emmanuel r wrote:
> You know, I bet that could be done with an ast transformation. Using it
> could look like this:
>
> @RequiredConstructorParameters(parameters = ['a'])
> class Foo {
>      String a
>      String b
> }

well, you could try TupleConstructor for example

be Jochen




Mime
View raw message