groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-2067) Truth as a method.
Date Tue, 02 May 2017 02:12:05 GMT

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

Paul King resolved GROOVY-2067.
-------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 3.0)
                   2.6.0-alpha-1

> Truth as a method.
> ------------------
>
>                 Key: GROOVY-2067
>                 URL: https://issues.apache.org/jira/browse/GROOVY-2067
>             Project: Groovy
>          Issue Type: Improvement
>          Components: syntax
>    Affects Versions: 1.1-beta-2
>         Environment: Ubuntu 7.04, Java 1.6.01, Groovy 1.0
>            Reporter: Marcos Silva Pereira
>             Fix For: 2.6.0-alpha-1
>
>
> With isCase method, you could do any type become a classifier for switch-case statements.
Groovy should deals with truth the same way providing a method that checks truth.
> This could avoid problems like that:
> http://thread.gmane.org/gmane.comp.lang.groovy.devel/8507/focus=8519
> And provides to users a way to do any class become a classifier for conditional statements.
The possible names to the methods are:
> 1. isTrue
> 2. checkTruth
> 3. truth
> 4. $isTrue
> 5. truth
> 6. asBool



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message