[ 
https://issues.apache.org/jira/browse/GROOVY-9017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King updated GROOVY-9017:
------------------------------
    Description: 
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}
 

  was:
Groovy makes readable code very easy to write. The use og 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}
 


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

Reply via email to