220 18696 <83C9452F-9B49-4A43-A8E5-EC98C3A1EDC2@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: if not (expression) like python
Date: Sun, 21 Jun 2015 10:11:51 +0800
Lines: 102
Approved: news@gmane.org
Message-ID: <83C9452F-9B49-4A43-A8E5-EC98C3A1EDC2@gmail.com>
References: <51565265-ec78-4f6b-b684-64aed8fd9a57@isocpp.org> <558400A2.2040005@gmail.com> <8f64343f-e5b8-424a-83df-4385c46c5ef9@isocpp.org> <1464415.iy2aHB31Tl@tjmaciei-mobl4> <mm1m79$pcs$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_F332BDA5-1FC7-4583-B6A9-359CC6ECDA6E"
X-Trace: ger.gmane.org 1434852731 3216 80.91.229.3 (21 Jun 2015 02:12:11 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 21 Jun 2015 02:12:11 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRB4N2TCWAKGQEW3T462I@isocpp.org Sun Jun 21 04:12:06 2015
Return-path: <std-proposals+bncBCW25A7E3QCRB4N2TCWAKGQEW3T462I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yh0-f72.google.com ([209.85.213.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRB4N2TCWAKGQEW3T462I@isocpp.org>)
	id 1Z6Ujq-0001Nl-JW
	for gclcip-std-proposals@m.gmane.org; Sun, 21 Jun 2015 04:12:02 +0200
Original-Received: by yhb65 with SMTP id 65sf132561284yhb.3
        for <gclcip-std-proposals@m.gmane.org>; Sat, 20 Jun 2015 19:12:01 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:content-type:message-id:mime-version
         :subject:date:references:to:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=mJokqSJVo7nbDKN88b+xvW0xPESKlyKW0tDiUxG1wlI=;
        b=Zt/SlJIdalZxt8Jd/3tCw0KfyFdB93JahOmxAcLQfBJspEWwZ+jORImgH8/cvymDx/
         RYp0X6zxxH2HOeeNL2KyBUuHRXDuPup2XOPM7GTfQjXpyiaNVSif3uDbmVE2uxTBybTg
         RMtPLT0UZ5e3fB/P+306CzmgbgdgOhNIoAVG0T9Kp+Cn7A43CaOHBCVSRom7yWFLDJle
         5kTkxsVB8hRUoEAT5CENdDH4QjTfkctWibVoTzy1OxwEXiCghnDm7hfJjq4AD3jvs2Op
         RCV5A4s8ilPRKgrnRLm5MyPFNWNWg6T+VBUn7M2JiNNAbyu3XCvUgRJrUhgI1FpvKGEU
         ePeA==
X-Gm-Message-State: ALoCoQkwDgWhwOFQ2fvR5FoXflnRks6uqsoCQ+ZgoZ7d30HPcWo79jIITP16xWSTCDy/T+lZb+Ix
X-Received: by 10.129.55.216 with SMTP id e207mr30814653ywa.24.1434852721619;
        Sat, 20 Jun 2015 19:12:01 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.41.74 with SMTP id d10ls665960igl.28.gmail; Sat, 20 Jun
 2015 19:12:00 -0700 (PDT)
X-Received: by 10.70.40.131 with SMTP id x3mr45658161pdk.83.1434852720860;
        Sat, 20 Jun 2015 19:12:00 -0700 (PDT)
Original-Received: from mail-pd0-x231.google.com (mail-pd0-x231.google.com. [2607:f8b0:400e:c02::231])
        by mx.google.com with ESMTPS id hl3si23307576pdb.148.2015.06.20.19.12.00
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 20 Jun 2015 19:12:00 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c02::231 as permitted sender) client-ip=2607:f8b0:400e:c02::231;
Original-Received: by pdbki1 with SMTP id ki1so115507155pdb.1
        for <std-proposals@isocpp.org>; Sat, 20 Jun 2015 19:12:00 -0700 (PDT)
X-Received: by 10.66.142.42 with SMTP id rt10mr45557196pab.142.1434852720748;
        Sat, 20 Jun 2015 19:12:00 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.44.95])
        by mx.google.com with ESMTPSA id sn7sm15507346pac.5.2015.06.20.19.11.57
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 20 Jun 2015 19:11:59 -0700 (PDT)
In-Reply-To: <mm1m79$pcs$1@ger.gmane.org>
X-Mailer: Apple Mail (2.2098)
X-Original-Sender: potswa@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@gmail.com designates 2607:f8b0:400e:c02::231 as permitted
 sender) smtp.mail=potswa@gmail.com;       dkim=pass header.i=@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:18696
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18696>

--Apple-Mail=_F332BDA5-1FC7-4583-B6A9-359CC6ECDA6E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8


> On 2015=E2=80=9306=E2=80=9320, at 2:15 AM, Matthew Woehlke <mwoehlke.flos=
s@gmail.com> wrote:
>=20
> I doubt these are used enough to be worth bothering, or I'd be tempted
> to add:

Supposedly they=E2=80=99re useful to programmers without certain characters=
 in their keyboard layouts. They are essentially inherited from C <iso646.h=
>. If the alternative spellings were used as intended in C++, such code wou=
ld be written with rvalue references declared by =E2=80=9Cand,=E2=80=9D lva=
lue references by =E2=80=9Cbitand,=E2=80=9D and destructors by =E2=80=9Ccom=
pl.=E2=80=9D

They=E2=80=99re cute, but not a serious alternative style.

As for parity with Python, note that the ! operator has high syntactic prec=
edence, so you need to parenthesize the expression unless it=E2=80=99s more=
 than e.g. a simple identifier or function call. Negated if expressions wer=
e proposed in Urbana (IIRC) and there was little interest.

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

--Apple-Mail=_F332BDA5-1FC7-4583-B6A9-359CC6ECDA6E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D""><br class=3D""><di=
v><blockquote type=3D"cite" class=3D""><div class=3D"">On 2015=E2=80=9306=
=E2=80=9320, at 2:15 AM, Matthew Woehlke &lt;<a href=3D"mailto:mwoehlke.flo=
ss@gmail.com" class=3D"">mwoehlke.floss@gmail.com</a>&gt; wrote:</div><br c=
lass=3D"Apple-interchange-newline"><div class=3D""><span style=3D"font-fami=
ly: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; f=
ont-weight: normal; letter-spacing: normal; line-height: normal; orphans: a=
uto; text-align: start; text-indent: 0px; text-transform: none; white-space=
: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">I doubt these are used=
 enough to be worth bothering, or I'd be tempted</span><br style=3D"font-fa=
mily: Helvetica; font-size: 12px; font-style: normal; font-variant: normal;=
 font-weight: normal; letter-spacing: normal; line-height: normal; orphans:=
 auto; text-align: start; text-indent: 0px; text-transform: none; white-spa=
ce: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px=
;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; font-=
style: normal; font-variant: normal; font-weight: normal; letter-spacing: n=
ormal; line-height: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; word-spacing:=
 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !importa=
nt;" class=3D"">to add:</span><br style=3D"font-family: Helvetica; font-siz=
e: 12px; font-style: normal; font-variant: normal; font-weight: normal; let=
ter-spacing: normal; line-height: normal; orphans: auto; text-align: start;=
 text-indent: 0px; text-transform: none; white-space: normal; widows: auto;=
 word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""></div></blo=
ckquote></div><br class=3D""><div class=3D"">Supposedly they=E2=80=99re use=
ful to programmers without certain characters in their keyboard layouts. Th=
ey are essentially inherited from C <font face=3D"Courier" class=3D"">&lt;i=
so646.h&gt;</font>.&nbsp;If the alternative spellings were used as intended=
 in C++, such code would be written with rvalue references declared by =E2=
=80=9C<font face=3D"Courier" class=3D"">and</font>,=E2=80=9D lvalue referen=
ces by =E2=80=9C<font face=3D"Courier" class=3D"">bitand</font>,=E2=80=9D a=
nd destructors by =E2=80=9C<font face=3D"Courier" class=3D"">compl</font>.=
=E2=80=9D</div><div class=3D""><br class=3D""></div><div class=3D"">They=E2=
=80=99re cute, but not a serious alternative style.</div><div class=3D""><b=
r class=3D""></div><div class=3D"">As for parity with Python, note that the=
 <font face=3D"Courier" class=3D"">!</font> operator has high syntactic pre=
cedence, so you need to parenthesize the expression unless it=E2=80=99s mor=
e than e.g. a simple identifier or function call. Negated <font face=3D"Cou=
rier" class=3D"">if</font>&nbsp;expressions were proposed in Urbana (IIRC) =
and there was little interest.</div></body></html>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--Apple-Mail=_F332BDA5-1FC7-4583-B6A9-359CC6ECDA6E--

.
