Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 643CB200BC5 for ; Tue, 22 Nov 2016 18:48:34 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 62FAC160AF1; Tue, 22 Nov 2016 17:48:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AD418160B0C for ; Tue, 22 Nov 2016 18:48:33 +0100 (CET) Received: (qmail 39576 invoked by uid 500); 22 Nov 2016 17:48:32 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 38868 invoked by uid 99); 22 Nov 2016 17:48:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2016 17:48:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5E5C81804FC for ; Tue, 22 Nov 2016 17:48:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.965 X-Spam-Level: * X-Spam-Status: No, score=1.965 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GDJ_V--4Sy8I for ; Tue, 22 Nov 2016 17:48:29 +0000 (UTC) Received: from resqmta-ch2-09v.sys.comcast.net (resqmta-ch2-09v.sys.comcast.net [69.252.207.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 51E525FB04 for ; Tue, 22 Nov 2016 17:48:29 +0000 (UTC) Received: from resomta-ch2-14v.sys.comcast.net ([69.252.207.110]) by resqmta-ch2-09v.sys.comcast.net with SMTP id 9F98cR81B1XXB9F9CcOg9F; Tue, 22 Nov 2016 17:46:22 +0000 Received: from [192.168.199.10] ([69.251.90.98]) by resomta-ch2-14v.sys.comcast.net with SMTP id 9F9BcIFcUtNcf9F9BcAd6b; Tue, 22 Nov 2016 17:46:22 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Negative relational operators for Groovy 3 From: Jim Jagielski In-Reply-To: Date: Tue, 22 Nov 2016 12:46:21 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1479473119038-5736809.post@n5.nabble.com> <1479474700269-5736816.post@n5.nabble.com> <1479813488166-5736882.post@n5.nabble.com> To: dev@groovy.apache.org X-Mailer: Apple Mail (2.3124) X-CMAE-Envelope: MS4wfJapRiyiTUtsfjygFVIXtET94fm/qc8p3NWHiAQ+ZMMfOpqHQuh3A1wRgFZCSIaoYm8yzb/xPbwOe0OqZKJnaVwLbL2KdoC0J0TBgcfUuwcnvYf96yaq jv6aNtE3X+2kK9JEQro/Eyy9d7HDsNWw6M3rMCbkoj8s/eTRi7hRgkQS archived-at: Tue, 22 Nov 2016 17:48:34 -0000 Agreed. > On Nov 22, 2016, at 6:44 AM, Guillaume Laforge = wrote: >=20 > 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? >=20 > On Tue, Nov 22, 2016 at 12:35 PM, C=C3=A9dric Champeau = 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. >=20 >=20 > Le 22 nov. 2016 12:18, "Daniel Sun" a =C3=A9cr= it : > Hi Jochen, >=20 > According to your proposals, I'm going to add the following = operators: >=20 > 1) !&& a !&& b =3D=3D=3D !(a && b) > 2) !|| a !|| b =3D=3D=3D !(a || b) > 3) !& a !& b =3D=3D=3D !(a & b) > 4) !| a !| b =3D=3D=3D !(a | b) > 5) ~& a ~& b =3D=3D=3D ~(a & b) > 6) ~| a ~| b =3D=3D=3D ~(a | b) >=20 > Could you confirm whether the semantics of these operators are = right > or not? >=20 > Thanks, > Daniel.Sun >=20 >=20 >=20 > -- > View this message in context: = http://groovy.329449.n5.nabble.com/Negative-relational-operators-for-Groov= y-3-tp5736809p5736882.html > Sent from the Groovy Dev mailing list archive at Nabble.com. >=20 >=20 >=20 > --=20 > Guillaume Laforge > Apache Groovy committer & PMC Vice-President > Developer Advocate @ Google Cloud Platform >=20 > Blog: http://glaforge.appspot.com/ > Social: @glaforge / Google+