220 29622 <d293b81b-1153-4aef-a253-6d7ab8d168aa@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: compiler should infer last semicolon of culy
 brace block... it makes lambas look better....
Date: Fri, 2 Dec 2016 12:20:46 -0800 (PST)
Lines: 73
Approved: news@gmane.org
Message-ID: <d293b81b-1153-4aef-a253-6d7ab8d168aa@isocpp.org>
References: <99df401b-562e-424f-9c17-01575f8b47e1@isocpp.org>
 <a09f1541-1574-4eed-a030-60a485510436@isocpp.org>
 <5876fa59-f31f-4b93-969a-8ab0437f2f55@isocpp.org>
 <da79b48a-99ac-4f12-86ff-28792fccf5d6@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_795_1561579492.1480710046795"
X-Trace: blaine.gmane.org 1480710049 1944 195.159.176.226 (2 Dec 2016 20:20:49 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 2 Dec 2016 20:20:49 +0000 (UTC)
Cc: wm2015email@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBH5PQ7BAKGQEFE3WWMQ@isocpp.org Fri Dec 02 21:20:45 2016
Return-path: <std-proposals+bncBCEKFTV6ZUMBBH5PQ7BAKGQEFE3WWMQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yb0-f197.google.com ([209.85.213.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBH5PQ7BAKGQEFE3WWMQ@isocpp.org>)
	id 1cCuK4-0008SG-7W
	for gclcip-std-proposals@m.gmane.org; Fri, 02 Dec 2016 21:20:44 +0100
Original-Received: by mail-yb0-f197.google.com with SMTP id v78sf261836953ybe.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 02 Dec 2016 12:20:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=7dT2znxwmix8pkizm8zqBaW4LM+gPyDY6jkPtMIOiec=;
        b=ca9vV4fvDrc08p/lde0V1pl52Au13vDdAoELLBuI8LkNynFL9kSB9VH4cX9M4e1Maw
         3f+qLCb8NYaVU9hv5+WW0AplStRRygxKjB7trhUmXaIgg2rp8JdIVLPhw83PDQTqnf0W
         oi0ync7O9/GsKn3hyr4BSSCavuQQ6sa1kflZtVV0fGOZZ1lk6jb7CrXbPqbun9zQX3b5
         H3jt9aAzjble3psUQSroE9jEv9OgzKx7hm0Nn5aHGhzrrbADFUwC/Dps53QTmZSeMJCw
         nt6EZ6n88Mcaj0UZSGEpy1IkpC9KsQH1sSgNlRuedo7JTqPqwlx0288hnorehAzf4sQf
         Q3ZQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=7dT2znxwmix8pkizm8zqBaW4LM+gPyDY6jkPtMIOiec=;
        b=JZMQQ13nsaN+M5nvbeCkBQtSWQzEzuWRNEjqQ4rcqTb40AuUPiz0hH4GKeQXnSQVGf
         WzWzpvnT7akBZIYKErt4UT1JJw2r3g2Tx/FYhwpmZ2Jq04PWylOLkIpntz4H1++9ZXjd
         CbcKeVdih3nPoFydPALFzsnT8s/T0rGbiQZd0ZOJGSBYibfbMghmgOVbcFAvgcWfEpra
         Bq8t+hCjvNS4pSJjSElP4S7slX9XoaeuKPRjwiOG0PkHGqz28paIwQIVihAj6qiqO9g7
         zEVs+v5a9xqXJVZOHU9/kaCuFkP4wE/78eMc9fAc+xxJnoEY2yDHuBc1nMI+SvdOpCAF
         m1Rg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to
         :references:subject:mime-version:x-original-sender:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=7dT2znxwmix8pkizm8zqBaW4LM+gPyDY6jkPtMIOiec=;
        b=nI1SgUEo8dia3KwYl8m9XKEDtKMlmkfaWBRvsgKCgCdyIJLDDBTmUk1S6miCiihIfB
         tS8bMHrF3ofAwAth9f+O6TCT1hPanga+cl32r1OfbvVqXCADjMtcwedn0zTcYFA1bz+j
         D5wNUya3luJtthklIw0STgFzY3Mo9S1gFrBBs+SmYLTDh3EptA+S2BJMEhVWLrZc+mjT
         QQb2xlg5vY8y6hOz5uQt8Yo5mFxYHC8XJ1L+tjxkN6PAETgwR8fDw+DAL+cHA+RicrEH
         0Bdfdr7xbFBeHkoQgFdp3OEKpV23Usvyp8JAyOdegMfW74b5bPbc3ZS+Vr0G6QDosoBL
         BdMQ==
X-Gm-Message-State: AKaTC035w4qAibcttZBEvCIOrZuZxmTv0jY/FWP9jZ6ejJQ8wd1UBVVBrjLd980udKhQyg==
X-Received: by 10.129.164.6 with SMTP id b6mr11682519ywh.124.1480710047983;
        Fri, 02 Dec 2016 12:20:47 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.33.22 with SMTP id i22ls2955562otb.6.gmail; Fri, 02 Dec
 2016 12:20:47 -0800 (PST)
X-Received: by 10.157.63.164 with SMTP id r33mr3183977otc.10.1480710047223;
        Fri, 02 Dec 2016 12:20:47 -0800 (PST)
In-Reply-To: <da79b48a-99ac-4f12-86ff-28792fccf5d6@isocpp.org>
X-Original-Sender: jmckesson@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:29622
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29622>

------=_Part_795_1561579492.1480710046795
Content-Type: multipart/alternative; 
	boundary="----=_Part_796_1810344412.1480710046795"

------=_Part_796_1810344412.1480710046795
Content-Type: text/plain; charset=UTF-8

On Friday, December 2, 2016 at 3:15:43 PM UTC-5, Jakob Riedle wrote:
>
> That might be `void` or it might not. There's no way to tell.
>
>
> Well, there is also no way to tell, whether "return dosomething2()" is 
> void.
> Look here for an Example <http://ideone.com/TLAqSY>.
> Does this even answer the concerns that you had?
>

My point is that it isn't clear whether the user *wanted* "return 
dosomething2()` or whether they just wanted to *call* `dosomething2()`. 
That's why, if we're going to elide the last semicolon in the block, doing 
that should not change the meaning of the last statement.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/d293b81b-1153-4aef-a253-6d7ab8d168aa%40isocpp.org.

------=_Part_796_1810344412.1480710046795
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Friday, December 2, 2016 at 3:15:43 PM UTC-5, Jakob Rie=
dle wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left:=
 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex">That might be `void` or it m=
ight not. There&#39;s no way to tell.</blockquote><div><br></div><div>Well,=
 there is also no way to tell, whether &quot;return dosomething2()&quot; is=
 void.</div><div>Look here for an=C2=A0<a href=3D"http://ideone.com/TLAqSY"=
 target=3D"_blank" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;http://=
www.google.com/url?q\x3dhttp%3A%2F%2Fideone.com%2FTLAqSY\x26sa\x3dD\x26sntz=
\x3d1\x26usg\x3dAFQjCNFeU4usX54TQakMZH4C2dkJZcw0qg&#39;;return true;" oncli=
ck=3D"this.href=3D&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fideone.c=
om%2FTLAqSY\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFeU4usX54TQakMZH4C2dkJZ=
cw0qg&#39;;return true;">Example</a>.</div><div>Does this even answer the c=
oncerns that you had?</div></div></blockquote><div><br>My point is that it =
isn&#39;t clear whether the user <i>wanted</i> &quot;return dosomething2()`=
 or whether they just wanted to <i>call</i> `dosomething2()`. That&#39;s wh=
y, if we&#39;re going to elide the last semicolon in the block, doing that =
should not change the meaning of the last statement.</div><br></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/d293b81b-1153-4aef-a253-6d7ab8d168aa%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/d293b81b-1153-4aef-a253-6d7ab8d168aa=
%40isocpp.org</a>.<br />

------=_Part_796_1810344412.1480710046795--

------=_Part_795_1561579492.1480710046795--

.
