groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Moore <p.f.mo...@gmail.com>
Subject Re: foo() || return false ?
Date Tue, 18 Jul 2017 14:11:14 GMT
Why do you need something "more concise"? It seems pretty OK to me...

On 18 July 2017 at 15:00, Guy Matz <guymatz@gmail.com> wrote:
> Right!  This is what I'm trying to do, but in a more concise way . . .  any
> thoughts anyone?
>
> On Mon, Jul 17, 2017 at 8:43 PM, J. David Beutel <list@getsu.com> wrote:
>>
>> I guess OP wants to do:
>>
>> if (!doSomething()) {
>>     return false
>> }

Mime
View raw message