Re: Negative relational operators for Groovy 3

2016-11-23 Thread Daniel Sun
tps://github.com/danielsun1106/groovy-parser/blob/negativeRelationalOperators/src/test/resources/core/NegativeRelationalOperators_02x.groovy Any thoughts? Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-

Re: Negative relational operators for Groovy 3

2016-11-23 Thread Guillaume Laforge
gt; >> The static compilation example codes can be found at >> https://github.com/danielsun1106/groovy-parser/blob/negative >> RelationalOperators/src/test/resources/core/NegativeRelatio >> nalOperators_02x.groovy >> >>Any thoughts

Re: Negative relational operators for Groovy 3

2016-11-23 Thread Marc Hadfield
< 2 >> assert 2 !< 1 >> assert 2 > 1 >> assert 1 !> 2 >> assert 1 in [1, 2] >> assert 3 !in [1, 2] >> >> The static compilation example codes can be found at >> https://github.com/danielsun1106/groovy-parser/blob/negative &g

Re: Negative relational operators for Groovy 3

2016-11-23 Thread Guillaume Laforge
gt; assert 1 !> 2 > assert 1 in [1, 2] > assert 3 !in [1, 2] > > The static compilation example codes can be found at > https://github.com/danielsun1106/groovy-parser/blob/ > negativeRelationalOperators/src/test/resources/core/ > NegativeRelationalOperators_02x.groovy > >

Re: Negative relational operators for Groovy 3

2016-11-23 Thread Graeme Rocher
== ~(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-r

Re: Negative relational operators for Groovy 3

2016-11-22 Thread Jim Jagielski
mp; 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://groov

Re: Negative relational operators for Groovy 3

2016-11-22 Thread Roman Shaposhnik
On Tue, Nov 22, 2016 at 7:11 PM, Henrik Martin wrote: > -1. I never knew I was missing those operators. I think there's a huge > benefit to having a clean syntax. > +1 for !in and !instanceof though. Same here! Thanks, Roman.

Re: Negative relational operators for Groovy 3

2016-11-22 Thread Henrik Martin
firm 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 <ht

Re: Negative relational operators for Groovy 3

2016-11-22 Thread Søren Berg Glasius
: Guillaume Laforge Reply: dev@groovy.apache.org Date: 22. november 2016 at 12.44.25 To: dev@groovy.apache.org Cc: Groovy_Developers 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

Re: Negative relational operators for Groovy 3

2016-11-22 Thread Guillaume Laforge
=== ~(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 >>

Re: Negative relational operators for Groovy 3

2016-11-22 Thread Cédric Champeau
~(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. >

Re: Negative relational operators for Groovy 3

2016-11-22 Thread Daniel Sun
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.

Re: Negative relational operators for Groovy 3

2016-11-19 Thread Daniel Sun
t;> >>> Sometimes we write code like "!(a > b)", now we can write "a !> b" >>> instead, which is much close to our mind :) >>> >>> Cheers, >>> Daniel.Sun >>> >>> >>> >>> >>&

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
Hi Jochen, > "a !&& b" for a nand instead of "!(a && b)" or instead of "!a || !b" > then there is also ~& and !& Looks good. They've been added to my TODO list :) Cheers, Daniel.Sun -- View this message in context: htt

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
bfcda) I'll merge the feature into parrot branch of apache/groovy later if you like it too :) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736848.html Sent from the Groovy Dev mailing list

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
> === and !=== are available for Groovy 3, so "!is" is not necessary. The identity operators should be === and !==:) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736834.html

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Paolo Di Tommaso
+1 On Fri, Nov 18, 2016 at 1:58 PM, Jochen Theodorou wrote: > > 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 >=. > > bye Jochen >

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Guillaume Laforge
://github.com/danielsun1106/groovy-parser/commit/ > 69023a63446d14add54f43d3d7797c9dd2a7f903 > > If it is ok, I'll merge it into parrot branch of apache/groovy. > > Cheers, > Daniel.Sun > > > > -- > View this message in context: http://groovy.329449.n5.nabble.co

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
Interesting, haha :) -- View this message in context: http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736831.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
f it is ok, I'll merge it into parrot branch of apache/groovy. Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736830.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Guillaume Laforge
- >> >>> De: "Graeme Rocher" >>> À: dev@groovy.apache.org >>> Cc: d...@groovy.incubator.apache.org >>> Envoyé: Vendredi 18 Novembre 2016 15:16:04 >>> Objet: Re: Negative relational operators for Groovy 3 >>> >> >> In agreement with e

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Jochen Theodorou
On 18.11.2016 15:52, Remi Forax wrote: - Mail original - De: "Graeme Rocher" À: dev@groovy.apache.org Cc: d...@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

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Jochen Theodorou
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 c

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Andres Almiray
t; >>>>> >>>>> 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 >=. >>>>>> >>&

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Remi Forax
t;> >>>> >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> >http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736816.html >>>> Sent from the Groovy D

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Paul King
s >>> > 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 >>> >&g

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Guillaume Laforge
; >> - Mail original - >> > De: "Graeme Rocher" >> > À: dev@groovy.apache.org >> > Cc: d...@groovy.incubator.apache.org >> > Envoyé: Vendredi 18 Novembre 2016 15:16:04 >> > Objet: Re: Negative relational operators for Groovy 3 >>

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Sergei Egorov
edi 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 > > > >

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Remi Forax
- Mail original - > De: "Graeme Rocher" > À: dev@groovy.apache.org > Cc: d...@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. > >

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Graeme Rocher
s !< 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 >> &

Re: Negative relational operators for Groovy 3

2016-11-18 Thread 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 discus

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
google.com/u/0/114130972232398734985/posts> ____ 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-tp5736809p5736815.html To unsubscribe from Negative relational

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Cédric Champeau
gt;=. 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 th

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
, 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.

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Guillaume Laforge
On Fri, Nov 18, 2016 at 2:05 PM, Guillaume Laforge wrote: > > On Fri, Nov 18, 2016 at 1:58 PM, Jochen Theodorou > wrote: > >> >> >> On 18.11.2016 13:45, Daniel Sun wrote: >> >>> Hi all, >>> >>> The new parser(Parrot) supports negative relational operators now, >>> which is proposed by Guil

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Guillaume Laforge
On Fri, Nov 18, 2016 at 1:58 PM, Jochen Theodorou wrote: > > > On 18.11.2016 13:45, Daniel Sun wrote: > >> Hi all, >> >> The new parser(Parrot) supports negative relational operators now, >> which is proposed by Guillaume Laforge :) >> >> Here are some example >> codes(https://github.

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
.n5.nabble.com/Negative-relational-operators-for-Groovy-3-tp5736809p5736813.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Jochen Theodorou
On 18.11.2016 13:45, Daniel Sun wrote: Hi all, The new parser(Parrot) supports negative relational operators now, which is proposed by Guillaume Laforge :) Here are some example codes(https://github.com/danielsun1106/groovy-parser/blob/negativeRelationalOperators/src/test/resource

Re: Negative relational operators for Groovy 3

2016-11-18 Thread Jochen Theodorou
On 18.11.2016 13:45, Daniel Sun wrote: Hi all, The new parser(Parrot) supports negative relational operators now, which is proposed by Guillaume Laforge :) Here are some example codes(https://github.com/danielsun1106/groovy-parser/blob/negativeRelationalOperators/src/test/resource

Negative relational operators for Groovy 3

2016-11-18 Thread Daniel Sun
ple codes can be found at https://github.com/danielsun1106/groovy-parser/blob/negativeRelationalOperators/src/test/resources/core/NegativeRelationalOperators_02x.groovy Any thoughts? Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Negative-relationa