[
https://issues.apache.org/jira/browse/GROOVY-9017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17790243#comment-17790243
]
ASF GitHub Bot commented on GROOVY-9017:
----------------------------------------
eric-milles closed pull request #1560: GROOVY-9017 DGM methods
URL: https://github.com/apache/groovy/pull/1560
> Better readability for logical operators
> ----------------------------------------
>
> Key: GROOVY-9017
> URL: https://issues.apache.org/jira/browse/GROOVY-9017
> Project: Groovy
> Issue Type: New Feature
> Reporter: Morten Søby
> Priority: Minor
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Groovy makes readable code very easy to write. The use of the !-operator
> doesn't read very well though. I think it would be a great addition if _not,
> or_ and _and_ became keywords.
> This would allow syntax such as:
> {code:java}
> boolean validated = doValidation(...)
> if(validated or administrator){
> ...
> }
> if(not authenticated){
> ...
> }{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)