220 39660 <71cf7691-0c85-46b2-9a85-46a9b4b57e9d@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: Readability improvement: types go on the right side
Date: Fri, 10 Aug 2018 06:43:54 -0700 (PDT)
Lines: 87
Approved: news@gmane.org
Message-ID: <71cf7691-0c85-46b2-9a85-46a9b4b57e9d@isocpp.org>
References: <d1e4945a-8605-4c11-99c9-5e8b30ce1186@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_767_2109635498.1533908634303"
X-Trace: blaine.gmane.org 1533908510 31981 195.159.176.226 (10 Aug 2018 13:41:50 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 10 Aug 2018 13:41:50 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBG5NW3NQKGQE53OX6VA@isocpp.org Fri Aug 10 15:41:46 2018
Return-path: <std-proposals+bncBCEKFTV6ZUMBBG5NW3NQKGQE53OX6VA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw1-f71.google.com ([209.85.161.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBG5NW3NQKGQE53OX6VA@isocpp.org>)
	id 1fo7fl-0008EB-OH
	for gclcip-std-proposals@m.gmane.org; Fri, 10 Aug 2018 15:41:45 +0200
Original-Received: by mail-yw1-f71.google.com with SMTP id d20-v6sf12829841ywa.16
        for <gclcip-std-proposals@m.gmane.org>; Fri, 10 Aug 2018 06:43:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=zNINLX8SV8QSFPPjKV8pLNt6PXiPdyn9z1zKgNebFrY=;
        b=LUpixNooRcXWPzrJD186hKqzoQmVJLJ5yP8YjcFYRCM8mtfEz9w/fyxsG+OATe89lE
         gO3/fXPz5ysf1Qeayq+8+9Gu1dBihZy06zilqfkkCVT4oO15Ey9PnSePXEr0mmgvd1DZ
         B6Ax+Hi6aysaa6z3iUqCJ6dzgQQX+Z03t6jIo9mrKXa6K6iERgLIBVRW/Bzq2I1Q3FBR
         7tpN5CLFYRawo03mSou2XFxV+uZAiZ68W27w88DdO3VWZpSRfWUiw+WcgwD+kfmi4YVJ
         tGhDcvKlPFfhhCB0KaDG0L5IJNDwB9KLUmp8xHcEVQBxrrPNx5FEmDz6CrqnNI2BF8g1
         sOQQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=zNINLX8SV8QSFPPjKV8pLNt6PXiPdyn9z1zKgNebFrY=;
        b=jzZ9YaKA0peuIur+wIPnCQqMB+DlC1hxqcDsVSPeg4DTO4IKXoLLZLg22cKT0UT8Om
         pVpMkb2qB9isYZjELf21/Iys1MTYyDYivcw2/Fwy/DgZ5CjoH82P+Z0MbACXv13n2MWU
         q15WHEdBFt1TgF/gYUbJeBoh2t8EuY1o/bDNbT9Ibk4nx0hupkDZwC0Lvhx9PKQWaKUz
         Gtx24+HGrAV0jlmP7fp9UidWlz3q3mKMLlvV28wR0S8+lYQQ1Nyftuwy7nUKs++Nt6w/
         MIyqlntTvBhRkkd3tBJs58XqA3MhUy0keI2tUOXtz3lNZV6ROPpIa/s0XZB5jH8bVbyy
         GaTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to: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=zNINLX8SV8QSFPPjKV8pLNt6PXiPdyn9z1zKgNebFrY=;
        b=cMwLPRTcvQEIulz7hXouClXuUtFvm2o/PXABK7W5xUT+I3SHE9tIfe41gqeRm50NiH
         9QuViFy5vvpEj8bdHCFKo90n+qQ9cc9Z8yvjO4429xgRs1iqzU4Xow9LamEYgq+bTf6T
         deY9b7FD/ey4G/xa6+L2+WDk8lsmLmtIWIPNg/I7zBdp8fhJ3UGFHgXbG3aZYfbVwm3g
         ptj5kNRrktyL6j58ztQkwe6Iem7bSNrKn4RjDsNe2zdJx6XuTLpMZ+2rsPav3+V5UbJF
         iHCCBbfGsTzAfivoqYKfNO7A8vZhS53wZfcivaJZ2DVZqZkEna1ccAEIGJ6lqMsPIM7k
         SshQ==
X-Gm-Message-State: AOUpUlEgO6ZpEF70u3qW0O3roDlPLw1t7TLK4QgtC0ED5JavWb9zZxKb
	SltbkEpVYdnPpJJPYyEdwExvLQ==
X-Google-Smtp-Source: AA+uWPxRQnHZEqldliYO4Ul1p1AyGTm1PxA6PzSjF6sa6dbNuuXcBntz5Y3p+UZo4KMraq5OoTpUnQ==
X-Received: by 2002:a81:8185:: with SMTP id r127-v6mr2026247ywf.147.1533908636169;
        Fri, 10 Aug 2018 06:43:56 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a0d:c101:: with SMTP id c1-v6ls1785715ywd.18.gmail; Fri, 10
 Aug 2018 06:43:55 -0700 (PDT)
X-Received: by 2002:a81:7dd6:: with SMTP id y205-v6mr156138ywc.1.1533908634824;
        Fri, 10 Aug 2018 06:43:54 -0700 (PDT)
In-Reply-To: <d1e4945a-8605-4c11-99c9-5e8b30ce1186@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-Spam-Checked-In-Group: 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:39660
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/39660>

------=_Part_767_2109635498.1533908634303
Content-Type: multipart/alternative; 
	boundary="----=_Part_768_357153968.1533908634304"

------=_Part_768_357153968.1533908634304
Content-Type: text/plain; charset="UTF-8"



On Friday, August 10, 2018 at 9:20:49 AM UTC-4, Dimitrij Mijoski wrote:
>
> In C++11 and onward we can declare a variable with and without auto.
>
> Type x;
> auto x = Type();
>
> In English we would read both as: Let x be a variable of type Type. It is 
> obvious that the declaration with auto is easier to read.
>

Is it? I find "Let there be a variable of type `Type` called `x`" works 
just as well.

We can't do this with member variables or with function parameters. I'd 
> like a future C++ to have types on the right side everywhere.
>

So, you're suggesting that we use precious syntax for notation. This won't 
increase the capabilities of any C++ program; it simply changes how things 
are declared.

Yeah, that's not really worth the cost.

-- 
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/71cf7691-0c85-46b2-9a85-46a9b4b57e9d%40isocpp.org.

------=_Part_768_357153968.1533908634304
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Friday, August 10, 2018 at 9:20:49 AM UTC-4, Di=
mitrij Mijoski wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;m=
argin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=
=3D"ltr">In C++11 and onward we can declare a variable with and without aut=
o.<br><br><div style=3D"background-color:rgb(250,250,250);border-color:rgb(=
187,187,187);border-style:solid;border-width:1px"><code><div><span style=3D=
"color:#606">Type</span><span style=3D"color:#000"> x</span><span style=3D"=
color:#660">;</span><span style=3D"color:#000"><br></span><span style=3D"co=
lor:#008">auto</span><span style=3D"color:#000"> x </span><span style=3D"co=
lor:#660">=3D</span><span style=3D"color:#000"> </span><span style=3D"color=
:#606">Type</span><span style=3D"color:#660">();</span></div></code></div><=
br>In English we would read both as: Let x be a variable of type Type. It i=
s obvious that the declaration with auto is easier to read.</div></blockquo=
te><div><br></div><div>Is it? I find &quot;Let there be a variable of type =
`Type` called `x`&quot; works just as well.<br></div><div><br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-lef=
t: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">We can&#39;t do this=
 with member variables or with function parameters. I&#39;d like a future C=
++ to have types on the right side everywhere.<br></div></blockquote><div><=
br></div><div>So, you&#39;re suggesting that we use precious syntax for not=
ation. This won&#39;t increase the capabilities of any C++ program; it simp=
ly changes how things are declared.</div><div><br></div><div>Yeah, that&#39=
;s not really worth the cost.</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/71cf7691-0c85-46b2-9a85-46a9b4b57e9d%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/71cf7691-0c85-46b2-9a85-46a9b4b57e9d=
%40isocpp.org</a>.<br />

------=_Part_768_357153968.1533908634304--

------=_Part_767_2109635498.1533908634303--

.
