groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Laforge <glafo...@gmail.com>
Subject Re: Negative relational operators for Groovy 3
Date Fri, 18 Nov 2016 14:59:09 GMT
Yeah, is is currently the method is(), not an operator.
But might be a good addition too.

On Fri, Nov 18, 2016 at 3:55 PM, Sergei Egorov <bsideup@gmail.com> wrote:

> How about is and !is ? Would be nice to have them :)
>
> On Fri, Nov 18, 2016 at 4:53 PM Remi Forax <forax@univ-mlv.fr> wrote:
>
>>
>>
>> ----- Mail original -----
>> > De: "Graeme Rocher" <graeme.rocher@gmail.com>
>> > À: dev@groovy.apache.org
>> > Cc: dev@groovy.incubator.apache.org
>> > Envoyé: Vendredi 18 Novembre 2016 15:16:04
>> > Objet: Re: Negative relational operators for Groovy 3
>>
>> > In agreement with everyone else here.
>> >
>> > +1 to !in and !instanceof
>> > -1 to everything else
>> >
>> > Cheers
>>
>> even !!
>>
>> Rémi
>>
>> >
>> > On Fri, Nov 18, 2016 at 2:25 PM, Daniel Sun <realbluesun@hotmail.com>
>> wrote:
>> >> OK. I see :)
>> >>
>> >>
>> >>
>> >> 在 Cédric Champeau [via Groovy] <ml-node+[hidden email]>,2016年11月18日
>> >> 下午9:18写道:
>> >>
>> >> I agree with Jochen and Guillaume: +1 to !instanceof and !in, but I
>> don't
>> >> like the other variants.
>> >>
>> >> 2016-11-18 14:11 GMT+01:00 Daniel Sun <[hidden email]>:
>> >>>
>> >>> 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 :)
>> >>>
>> >>> Cheers,
>> >>> Daniel.Sun
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> View this message in context:
>> >>> http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-
>> Groovy-3-tp5736809p5736816.html
>> >>> Sent from the Groovy Dev mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> >>
>> >> ________________________________
>> >> If you reply to this email, your message will be added to the
>> discussion
>> >> below:
>> >> http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-
>> Groovy-3-tp5736809p5736817.html
>> >> To unsubscribe from Negative relational operators for Groovy 3, click
>> here.
>> >> NAML
>> >>
>> >>
>> >> ________________________________
>> >> View this message in context: Re: Negative relational operators for
>> Groovy 3
>> >> Sent from the Groovy Dev mailing list archive at Nabble.com.
>> >
>> >
>> >
>> > --
>> > Graeme Rocher
>>
>


-- 
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