You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Morten Søby (JIRA)" <ji...@apache.org> on 2019/03/05 14:42:00 UTC
[jira] [Created] (GROOVY-9017) Better readability for logical
operators
Morten Søby created GROOVY-9017:
-----------------------------------
Summary: 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
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}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)