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 2022/02/16 17:30:49 UTC

[GitHub] [groovy] eric-milles commented on pull request #1687: GROOVY-10497: `@NamedVariant`: don't replace explicit value with default

eric-milles commented on pull request #1687:
URL: https://github.com/apache/groovy/pull/1687#issuecomment-1041912453


   `map.getOrDefault(name,defaultValue)` is another option.  The ternary avoids evaluating `defaultValue` if it is not used.


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

To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org