220 29614 <a09f1541-1574-4eed-a030-60a485510436@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Jakob Riedle <jakob.riedle@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 07:14:20 -0800 (PST)
Lines: 95
Approved: news@gmane.org
Message-ID: <a09f1541-1574-4eed-a030-60a485510436@isocpp.org>
References: <99df401b-562e-424f-9c17-01575f8b47e1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_730_759639917.1480691660881"
X-Trace: blaine.gmane.org 1480691667 30675 195.159.176.226 (2 Dec 2016 15:14:27 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 2 Dec 2016 15:14:27 +0000 (UTC)
Cc: wm2015email@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCX2XNFO6MPRBTM7Q3BAKGQECUHCQRQ@isocpp.org Fri Dec 02 16:14:21 2016
Return-path: <std-proposals+bncBCX2XNFO6MPRBTM7Q3BAKGQECUHCQRQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f198.google.com ([209.85.220.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCX2XNFO6MPRBTM7Q3BAKGQECUHCQRQ@isocpp.org>)
	id 1cCpXW-0006ge-5Q
	for gclcip-std-proposals@m.gmane.org; Fri, 02 Dec 2016 16:14:19 +0100
Original-Received: by mail-qk0-f198.google.com with SMTP id m67sf207144823qkf.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 02 Dec 2016 07:14:22 -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=4mVI16kItBZI+S3AcYMMVsY6hCNrYu0mNM8dkHHgddY=;
        b=OnAlj7tRn3EEegX2RoH0TXLjwFk6rh1ehqfrB1a2WeagD6DpuKcfNfpdbsnOfCV+xY
         k4GtzZ1WPsh3jL4XVBQ6mNT4DQ/7bVtwQvVIGsL2MUdnUaw8whhOe0DgNJeWwLRyw75R
         aFgU5yL7EpbgOMUzxXmNLNkTPwocC06rR3Mug4p+ACkQxZH7XweBMk9ya6uSZtcVAflO
         VFiyvIHzxPk247VeNW2toWvR8WCMSZER8/lyiN71L+Mk7ILrxVPeXsolt5WY7K8JPw1w
         r/AVVBzZ/6iK945sTj66ogvIu/fUDmNBlrumlLSyVQG/5cOvUroe1A94tQRqkHHEQNiA
         SJFA==
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=4mVI16kItBZI+S3AcYMMVsY6hCNrYu0mNM8dkHHgddY=;
        b=eAg6cpjKdu6BHoV/VCgrU79og203fHAIn3s7+DDhFWR++uv9KahE1h/557WQn3/dce
         i5+foPzWOdopEDq2OPJfWD/N5uvKlHP4pbVhQ5uQ9tCdLqxgFnoAV1VEkcVDOZYwRoIJ
         0KpJNohqgEU25n73a97opFLiQzznmt112GZnOAA0LNGiB/XD9/W3imngXXGda1TWdlf0
         pjGh6Ujt+dy8QP/Ttz8cbc86PMso3xBw3NRmjMsj8oxIkGxmIEDuTx2rWiNZeV1PkNu8
         stm6Gs8VNGs+Pb8WHIpdPvU0M0LmqZZ9gfIGcmh6ugJ8jyz3pR4AyZfxIXTnwy1na6wH
         t1Xg==
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=4mVI16kItBZI+S3AcYMMVsY6hCNrYu0mNM8dkHHgddY=;
        b=dTavnZ2fGzIl6aiLPXJ47KDSDunwG5FgvJFy52u83QbMA8c03r6nzfGQJlwz7rBZuI
         +rH4c5fbkfOZ/JEXsFGoIbhb0+TeQjPCyYociSnv3Hqe4sW4E3l5gJhZ+aYOrIjHNEWi
         DaYjGpiOZtxWf9/hM9WXsNTsSjJ1eQ1pRuAwWqLCiAL3MAZy/ItYCCnLSpH9yGfgcoAW
         WzFSz1XZ+EkQC8iswVXULdb2/boFn6D4pn8XrT/CzSTVwCnrYm8O+keNpudAfXmHocWk
         SHG0/7w4hfVO7VNssBYiKPuSuQmlr1N6qIpldUj5s7VlDT3wYcN/rvktxNBgVzI3dE3O
         +8jA==
X-Gm-Message-State: AKaTC03hfVVdPf6DsJ7pispfeldKGZCW2fElL3pcVNR03nmmUovDOHYT12jt2NyNjY7ppQ==
X-Received: by 10.237.41.227 with SMTP id o90mr9234155qtd.54.1480691661971;
        Fri, 02 Dec 2016 07:14:21 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.20.161 with SMTP id d30ls12147071ote.5.gmail; Fri, 02 Dec
 2016 07:14:21 -0800 (PST)
X-Received: by 10.157.17.167 with SMTP id v36mr2993269otf.12.1480691661334;
        Fri, 02 Dec 2016 07:14:21 -0800 (PST)
In-Reply-To: <99df401b-562e-424f-9c17-01575f8b47e1@isocpp.org>
X-Original-Sender: jakob.riedle@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:29614
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29614>

------=_Part_730_759639917.1480691660881
Content-Type: multipart/alternative; 
	boundary="----=_Part_731_567246139.1480691660881"

------=_Part_731_567246139.1480691660881
Content-Type: text/plain; charset=UTF-8


>
> A comma is allowed there


Truly...

*Concerning your Idea:*
I like it!


Another Idea: How about making the "return" stmt obsolete, *when there is 
no semicolon *(only within a lambda)? How about being able to write

transform(begin(str), end(str), [](auto c){ toupper(c) } );

*Why I said it: *Because making "return" optional when there is no 
semicolon makes it a backwards-compatible change!

Just an idea...

-- 
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/a09f1541-1574-4eed-a030-60a485510436%40isocpp.org.

------=_Part_731_567246139.1480691660881
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px=
 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">=
A comma is allowed there</blockquote><div><br></div><div>Truly...</div><div=
><br></div><div><b>Concerning your Idea:</b></div><div>I like it!</div><div=
><br></div><div><br></div><div>Another Idea: How about making the &quot;ret=
urn&quot; stmt obsolete, <b>when there is no semicolon </b>(only within a l=
ambda)? How about being able to write</div><div><br></div><div><div class=
=3D"prettyprint" style=3D"background-color: rgb(250, 250, 250); border-colo=
r: rgb(187, 187, 187); border-style: solid; border-width: 1px; word-wrap: b=
reak-word;"><code class=3D"prettyprint"><div class=3D"subprettyprint"><span=
 style=3D"color: #000;" class=3D"styled-by-prettify">transform</span><span =
style=3D"color: #660;" class=3D"styled-by-prettify">(</span><span style=3D"=
color: #008;" class=3D"styled-by-prettify">begin</span><span style=3D"color=
: #660;" class=3D"styled-by-prettify">(</span><span style=3D"color: #000;" =
class=3D"styled-by-prettify">str</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">),</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify"> </span><span style=3D"color: #008;" class=3D"styled-by-pre=
ttify">end</span><span style=3D"color: #660;" class=3D"styled-by-prettify">=
(</span><span style=3D"color: #000;" class=3D"styled-by-prettify">str</span=
><span style=3D"color: #660;" class=3D"styled-by-prettify">),</span><span s=
tyle=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"c=
olor: #660;" class=3D"styled-by-prettify">[](</span><span style=3D"color: #=
008;" class=3D"styled-by-prettify">auto</span><span style=3D"color: #000;" =
class=3D"styled-by-prettify"> c</span><span style=3D"color: #660;" class=3D=
"styled-by-prettify">){</span><span style=3D"color: #000;" class=3D"styled-=
by-prettify"> toupper</span><span style=3D"color: #660;" class=3D"styled-by=
-prettify">(</span><span style=3D"color: #000;" class=3D"styled-by-prettify=
">c</span><span style=3D"color: #660;" class=3D"styled-by-prettify">)</span=
><span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span st=
yle=3D"color: #660;" class=3D"styled-by-prettify">}</span><span style=3D"co=
lor: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #660=
;" class=3D"styled-by-prettify">);</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"><br></span></div></code></div></div><div><br></div>=
<div><b>Why I said it: </b>Because making &quot;return&quot; optional when =
there is no semicolon makes it a backwards-compatible change!</div><div><br=
></div><div>Just an idea...</div></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/a09f1541-1574-4eed-a030-60a485510436%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/a09f1541-1574-4eed-a030-60a485510436=
%40isocpp.org</a>.<br />

------=_Part_731_567246139.1480691660881--

------=_Part_730_759639917.1480691660881--

.
