I must confess I'm also a bit worried with those operators too. For !in and !instanceof, I really like the idea, but here, it's closer to Ascii art. What others think?
On Tue, Nov 22, 2016 at 12:35 PM, Cédric Champeau <cedric.champ...@gmail.com > wrote: > 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" <realblue...@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. >> > -- 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>