groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cedric.champ...@gmail.com>
Subject Re: Negative relational operators for Groovy 3
Date Tue, 22 Nov 2016 11:35:14 GMT
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.
>

Mime
View raw message