groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graeme Rocher <graeme.roc...@gmail.com>
Subject Re: Negative relational operators for Groovy 3
Date Wed, 23 Nov 2016 11:10:49 GMT
-1 from me too, very confusing. +1 for only !in and !instanceof

Cheers

On Tue, Nov 22, 2016 at 6:46 PM, Jim Jagielski <jim@jagunet.com> wrote:
> Agreed.
>
>> On Nov 22, 2016, at 6:44 AM, Guillaume Laforge <glaforge@gmail.com> wrote:
>>
>> I must confess I'm also a bit worried with those operators too.
>> For !in and !instanceof, I really like the idea, but here, it's closer to Ascii art.
>> What others think?
>>
>> On Tue, Nov 22, 2016 at 12:35 PM, Cédric Champeau <cedric.champeau@gmail.com>
wrote:
>> I find this very hard to decipher. The fact we wonder about the semantics is a red
warning to me. I wouldn't add those to the language.
>>
>>
>> Le 22 nov. 2016 12:18, "Daniel Sun" <realbluesun@hotmail.com> a écrit :
>> Hi Jochen,
>>
>>      According to your proposals, I'm going to add the following operators:
>>
>> 1) !&&      a !&& b === !(a && b)
>> 2) !||        a !|| b === !(a || b)
>> 3) !&          a !& b === !(a & b)
>> 4) !|           a !| b === !(a | b)
>> 5) ~&         a ~& b === ~(a & b)
>> 6) ~|          a ~| b === ~(a | b)
>>
>>        Could you confirm whether the semantics of these operators are right
>> or not?
>>
>> Thanks,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context: http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736882.html
>> Sent from the Groovy Dev mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Guillaume Laforge
>> Apache Groovy committer & PMC Vice-President
>> Developer Advocate @ Google Cloud Platform
>>
>> Blog: http://glaforge.appspot.com/
>> Social: @glaforge / Google+
>



-- 
Graeme Rocher

Mime
View raw message