220 18676 <558400A2.2040005@gmail.com> article
Path: news.gmane.org!not-for-mail
From: Evgeny Panasyuk <evgeny.panasyuk@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: if not (expression) like python
Date: Fri, 19 Jun 2015 14:44:34 +0300
Lines: 27
Approved: news@gmane.org
Message-ID: <558400A2.2040005@gmail.com>
References: <51565265-ec78-4f6b-b684-64aed8fd9a57@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Trace: ger.gmane.org 1434714304 23499 80.91.229.3 (19 Jun 2015 11:45:04 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 19 Jun 2015 11:45:04 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC54TLGKR4LBBKUBSCWAKGQET46LFMQ@isocpp.org Fri Jun 19 13:44:57 2015
Return-path: <std-proposals+bncBC54TLGKR4LBBKUBSCWAKGQET46LFMQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-la0-f70.google.com ([209.85.215.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC54TLGKR4LBBKUBSCWAKGQET46LFMQ@isocpp.org>)
	id 1Z5uiy-00032e-7O
	for gclcip-std-proposals@m.gmane.org; Fri, 19 Jun 2015 13:44:44 +0200
Original-Received: by laer2 with SMTP id r2sf2549083lae.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 19 Jun 2015 04:44:43 -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:message-id:date:user-agent:mime-version:to
         :subject:references:in-reply-to:content-type: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=QUPMUDVUhxGI1fUpT9aSDnI0+BdeR9AsPSEul3dM584=;
        b=M1Hysc2GBWILFUNonK2ECkGxXomZ6NyO5mGl3gSxzvUk09zlMZjZCZ60lpEiU8rXr8
         qAi2j3vMUs0e8RFw1xgD+qrlz2d3epovD5QdTNR8LK6MFKSmVSoeDiDMY25wlUqmTy3r
         PL67dEAg1oUSo7nYP0vw3jyIoHQ5hnbUHs8Q+IDfI3eohXHr+G18rdltgS7DWa31pNMW
         OfxnPYjbuRVK/ohWJQOj0iV8s59JavoF8snjFmDM5wWtq51XkXmve8f5MNdRybMJZMDM
         Bk/iuqvsnudkBdgCbTvGB7GGorqFnK1+6UA/1p+sjRPpCI8Oeb8Xk/Spyk7yazSt282A
         09sw= 
X-Gm-Message-State: ALoCoQkKCfaL7hmWcqVyIJHjh05iEn2qSi0aUoDV2oYNdxOvRfk6xCzZ3jDhM/wYAlxntu3adIcN
X-Received: by 10.112.14.101 with SMTP id o5mr14662094lbc.3.1434714283538;
        Fri, 19 Jun 2015 04:44:43 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.43.228 with SMTP id z4ls607053lal.90.gmail; Fri, 19 Jun
 2015 04:44:42 -0700 (PDT)
X-Received: by 10.152.30.34 with SMTP id p2mr17381806lah.89.1434714282143;
        Fri, 19 Jun 2015 04:44:42 -0700 (PDT)
Original-Received: from mail-la0-x230.google.com (mail-la0-x230.google.com. [2a00:1450:4010:c03::230])
        by mx.google.com with ESMTPS id b1si8957903laf.78.2015.06.19.04.44.42
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 19 Jun 2015 04:44:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of evgeny.panasyuk@gmail.com designates 2a00:1450:4010:c03::230 as permitted sender) client-ip=2a00:1450:4010:c03::230;
Original-Received: by lacny3 with SMTP id ny3so72450392lac.3
        for <std-proposals@isocpp.org>; Fri, 19 Jun 2015 04:44:42 -0700 (PDT)
X-Received: by 10.152.44.225 with SMTP id h1mr17336071lam.5.1434714282053;
        Fri, 19 Jun 2015 04:44:42 -0700 (PDT)
Original-Received: from [192.168.0.186] ([188.114.26.93])
        by mx.google.com with ESMTPSA id q9sm2432681lag.20.2015.06.19.04.44.40
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 19 Jun 2015 04:44:41 -0700 (PDT)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
In-Reply-To: <51565265-ec78-4f6b-b684-64aed8fd9a57@isocpp.org>
X-Original-Sender: Evgeny.Panasyuk@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of evgeny.panasyuk@gmail.com designates 2a00:1450:4010:c03::230 as
 permitted sender) smtp.mail=evgeny.panasyuk@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:18676
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18676>

19.06.2015 14:38, shatilov.diman@gmail.com:
> Sorry for my poor English.
>
> I suggest to add new keyword '*not*' to the c++17, like in python.
>
> I think
> |ifnot(bag.empty()){}|
> is more readable, then
> |if(bag.empty()==false){}
> //or
> if(!bag.empty()){}|

C++ already has "not": http://coliru.stacked-crooked.com/a/43b2a7e11c75e601

|if(not bag.empty()) {}|

-- 
Evgeny Panasyuk

-- 

--- 
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 email 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-proposals/.

.
