groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Negative relational operators for Groovy 3
Date Fri, 18 Nov 2016 16:03:34 GMT


On 18.11.2016 14:11, Daniel Sun wrote:
> Hi Jochen,
>
>>  I think !instanceof and !in are ok. The others... not sure here. Right
>>  now a*=b, which means !< is >=. And in this
>>  case I actually prefer >=.
>
>      Sometimes we write code like "!(a > b)", now we can write "a !> b"
> instead, which is much close to our mind :)

"!>" vs ">="... No, I like the other more.. how about the boolean ones?

"a !&& b" for a nand instead of "!(a && b)" or instead of "!a || !b"

then there is also ~& and !&


bye Jochen

Mime
View raw message