You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2019/12/15 09:40:11 UTC

[GitHub] [groovy] paulk-asert commented on issue #311: Generate tuple constructor with all args and annotations

paulk-asert commented on issue #311: Generate tuple constructor with all args and annotations
URL: https://github.com/apache/groovy/pull/311#issuecomment-565793094
 
 
   Hi Christoffer, perhaps you can explain what you are trying to do and we can show you how to do it in Groovy.
   
   The Java approach to properties is to write the getters, setters and backing field yourself. Groovy properties are a short-hand for the 99% common case of public getters/setters and private backing field but you can always write yourself as per Java for special cases or write your own meta-programming to give you other combinations. When writing yourself fields and methods can be private, protected, package-private or public.
   
   Annotations aren't required but many developers like the magnitude productivity increase that compile-time meta-programming offers.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services