groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: Negative relational operators for Groovy 3
Date Sat, 19 Nov 2016 14:55:41 GMT
Hi Paul,

      You are right. Currently we just support !instanceof, !in. As to !is, we have !== instead
in the Groovy 3.

Cheers,
Daniel.Sun



在 "paulk_asert [via Groovy]" <ml-node+s329449n5736824h2@n5.nabble.com>,2016年11月18日
23:10写道:

On Sat, Nov 19, 2016 at 12:16 AM, Graeme Rocher <[hidden email]> wrote:
> In agreement with everyone else here.
>
> +1 to !in and !instanceof
> -1 to everything else

Same for me. I am undecided about sticky or not (allowing a space) but
easier to be conservative and loosen later.
I'm -1 for 'as' (no one has proposed it but another of our operators)
and probably 'is' too. If we do is, I don't see why we wouldn't do it
for all methods (that return boolean), e.g. assert 'a'.!isUpperCase()
and I am a little hesitant about such a notation.

Paul.

> On Fri, Nov 18, 2016 at 2:25 PM, Daniel Sun <[hidden email]> 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


________________________________
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-tp5736809p5736824.html
To unsubscribe from Negative relational operators for Groovy 3, click here<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5736809&code=cmVhbGJsdWVzdW5AaG90bWFpbC5jb218NTczNjgwOXwxMTQ2MjE4MjI1>.
NAML<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736853.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
Mime
View raw message