groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Berg Glasius <soe...@glasius.dk>
Subject Re: Negative relational operators for Groovy 3
Date Tue, 22 Nov 2016 12:10:24 GMT
-1 from me. Does not add pure value to the language, more like confusion.
the !in and !instanceof are clear wins however.

Best regards,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.

From: Guillaume Laforge <glaforge@gmail.com> <glaforge@gmail.com>
Reply: dev@groovy.apache.org <dev@groovy.apache.org> <dev@groovy.apache.org>
Date: 22. november 2016 at 12.44.25
To: dev@groovy.apache.org <dev@groovy.apache.org> <dev@groovy.apache.org>
Cc: Groovy_Developers <dev@groovy.incubator.apache.org>
<dev@groovy.incubator.apache.org>
Subject:  Re: Negative relational operators for Groovy 3

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 <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Mime
View raw message