Topic: Readability improvement: all function


Author: Jake Arkinstall <jake.arkinstall@gmail.com>
Date: Fri, 10 Aug 2018 18:25:23 +0100
Raw View
--000000000000b1fc8a0573180707
Content-Type: text/plain; charset="UTF-8"

On Fri, 10 Aug 2018, 16:35 , <cppljevans@gmail.com> wrote:

> Why limit this to functions?  Why not a variable declaration like this:
> auto variable_name all keywords here [[attributes here]] -> Type;
>

East const on a thread about supposed readability improvements? Brave move.

Suggestion:

auto variable_name other keywords here [[attributes here]] -> (const) type


(I'm half kidding, of course)

--
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/CAC%2B0CCPZ5MUQ8aCWVJ%2B-uo_-qXji-0fM6P-AvppYBKbMMvAaBQ%40mail.gmail.com.

--000000000000b1fc8a0573180707
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div class=3D"gmail_quote" dir=3D"auto"><div dir=3D"ltr">=
On Fri, 10 Aug 2018, 16:35 , &lt;<a href=3D"mailto:cppljevans@gmail.com" ta=
rget=3D"_blank" rel=3D"noreferrer">cppljevans@gmail.com</a>&gt; wrote:</div=
><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1=
px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Why limit this to fun=
ctions?=C2=A0 Why not a variable declaration like this:</div><div> <div sty=
le=3D"background-color:rgb(250,250,250);border-color:rgb(187,187,187);borde=
r-style:solid;border-width:1px" class=3D"m_275797065010556826m_243447201012=
3828911prettyprint"><code class=3D"m_275797065010556826m_243447201012382891=
1prettyprint"><div class=3D"m_275797065010556826m_2434472010123828911subpre=
ttyprint"><span style=3D"color:#008" class=3D"m_275797065010556826m_2434472=
010123828911styled-by-prettify">auto</span><span style=3D"color:#000" class=
=3D"m_275797065010556826m_2434472010123828911styled-by-prettify"> variable_=
name all keywords here </span><span style=3D"color:#660" class=3D"m_2757970=
65010556826m_2434472010123828911styled-by-prettify">[[</span><span style=3D=
"color:#000" class=3D"m_275797065010556826m_2434472010123828911styled-by-pr=
ettify">attributes here</span><span style=3D"color:#660" class=3D"m_2757970=
65010556826m_2434472010123828911styled-by-prettify">]]</span><span style=3D=
"color:#000" class=3D"m_275797065010556826m_2434472010123828911styled-by-pr=
ettify"> </span><span style=3D"color:#660" class=3D"m_275797065010556826m_2=
434472010123828911styled-by-prettify">-&gt;</span><span style=3D"color:#000=
" class=3D"m_275797065010556826m_2434472010123828911styled-by-prettify"> </=
span><span style=3D"color:#606" class=3D"m_275797065010556826m_243447201012=
3828911styled-by-prettify">Type</span><span style=3D"color:#660" class=3D"m=
_275797065010556826m_2434472010123828911styled-by-prettify">;</span><span s=
tyle=3D"color:#000" class=3D"m_275797065010556826m_2434472010123828911style=
d-by-prettify"><br></span></div></code></div></div></div></blockquote></div=
><div dir=3D"auto"><br></div><div dir=3D"auto"><span style=3D"font-family:s=
ans-serif">East const on a thread about supposed readability improvements? =
Brave move.</span></div><div dir=3D"auto"><span style=3D"font-family:sans-s=
erif"><br></span></div><div dir=3D"auto"><font face=3D"sans-serif">Suggesti=
on:</font></div><div dir=3D"auto"><span style=3D"font-family:sans-serif"><b=
r></span></div><div dir=3D"auto"><span style=3D"font-family:sans-serif">aut=
o variable_name other keywords here [[attributes here]] -&gt; (const) type<=
/span></div><div dir=3D"auto"><br></div><div dir=3D"auto"><span style=3D"fo=
nt-family:sans-serif"><br></span></div><div dir=3D"auto"><span style=3D"fon=
t-family:sans-serif">(I&#39;m half kidding, of course)</span></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/CAC%2B0CCPZ5MUQ8aCWVJ%2B-uo_-qXji-0fM=
6P-AvppYBKbMMvAaBQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAC%2B0CCPZ5M=
UQ8aCWVJ%2B-uo_-qXji-0fM6P-AvppYBKbMMvAaBQ%40mail.gmail.com</a>.<br />

--000000000000b1fc8a0573180707--

.


Author: Bjorn Reese <breese@mail1.stofanet.dk>
Date: Fri, 10 Aug 2018 19:29:59 +0200
Raw View
On 08/10/18 17:35, cppljevans@gmail.com wrote:

> Why limit this to functions?=C2=A0 Why not a variable declaration like th=
is:
> |
> autovariable_name all keywords here [[attributes here]]->Type;
> |

Where would you place initialization?

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/0789edc1-b70f-9361-90f1-1e3c83c5d021%40mail1.sto=
fanet.dk.

.


Author: cppljevans@gmail.com
Date: Fri, 10 Aug 2018 11:57:23 -0700 (PDT)
Raw View
------=_Part_868_1126187377.1533927443508
Content-Type: multipart/alternative;
 boundary="----=_Part_869_608326216.1533927443508"

------=_Part_869_608326216.1533927443508
Content-Type: text/plain; charset="UTF-8"



On Friday, August 10, 2018 at 12:30:01 PM UTC-5, Bjorn Reese wrote:
>
> On 08/10/18 17:35, cpplj...@gmail.com <javascript:> wrote:
>
> > Why limit this to functions?  Why not a variable declaration like this:
> > |
> > autovariable_name all keywords here [[attributes here]]->Type;
> > |
>
> Where would you place initialization?
>

Same place that a lambda expression places it.  IOW:

auto variable_name -> Type {initialization_here};


--
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/822fe38a-c573-45b6-a140-8f12f9e24186%40isocpp.org.

------=_Part_869_608326216.1533927443508
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Friday, August 10, 2018 at 12:30:01 PM UTC-5, B=
jorn Reese wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 08/10/18 1=
7:35, <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"Hc=
ZNnUVNDQAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;javascript:&#3=
9;;return true;" onclick=3D"this.href=3D&#39;javascript:&#39;;return true;"=
>cpplj...@gmail.com</a> wrote:
<br>
<br>&gt; Why limit this to functions?=C2=A0 Why not a variable declaration =
like this:
<br>&gt; |
<br>&gt; autovariable_name all keywords here [[attributes here]]-&gt;Type;
<br>&gt; |
<br>
<br>Where would you place initialization?
<br></blockquote><div><br></div><div>Same place that a lambda expression pl=
aces it.=C2=A0 IOW:</div><div><br></div><div><div style=3D"background-color=
: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: solid=
; border-width: 1px; overflow-wrap: break-word;" class=3D"prettyprint"><cod=
e class=3D"prettyprint"><div class=3D"subprettyprint"><span style=3D"color:=
 #008;" class=3D"styled-by-prettify">auto</span><span style=3D"color: #000;=
" class=3D"styled-by-prettify"> variable_name </span><span style=3D"color: =
#660;" class=3D"styled-by-prettify">-&gt;</span><span style=3D"color: #000;=
" class=3D"styled-by-prettify"> </span><span style=3D"color: #606;" class=
=3D"styled-by-prettify">Type</span><span style=3D"color: #000;" class=3D"st=
yled-by-prettify"> </span><span style=3D"color: #660;" class=3D"styled-by-p=
rettify">{</span><span style=3D"color: #000;" class=3D"styled-by-prettify">=
in</span><span style=3D"color: #000;" class=3D"styled-by-prettify">itializa=
tion_here</span><span style=3D"color: #660;" class=3D"styled-by-prettify">}=
;</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br></spa=
n></div></code></div><br><br></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/822fe38a-c573-45b6-a140-8f12f9e24186%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/822fe38a-c573-45b6-a140-8f12f9e24186=
%40isocpp.org</a>.<br />

------=_Part_869_608326216.1533927443508--

------=_Part_868_1126187377.1533927443508--

.