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 2021/02/16 14:56:16 UTC

[GitHub] [groovy] danielsun1106 commented on pull request #1492: GROOVY-9946: Add `@ConstantString` to mark constant result of `toString`

danielsun1106 commented on pull request #1492:
URL: https://github.com/apache/groovy/pull/1492#issuecomment-779890204


   > If this annotation is a marker and not a transform, is there a better package for it?
   
   Any suggestion is welcome. Currently I put it with `@KnownImmutable` in the same package.  /cc @paulk-asert 
   
   > The ticket does not describe why this would be useful.
   
   Currently we just cache literal of `GString` when its all values are immutable, but for more common cases, if the result of value's `toString` is constant, we could cache too.
   


----------------------------------------------------------------
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