220 31149 <9108e037-e8fd-4e9c-922e-779fb2c0c632@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Denis Kotov <redradist@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Removing forward references ("universal"
 references) from the standard
Date: Sun, 26 Feb 2017 01:19:05 -0800 (PST)
Lines: 172
Approved: news@gmane.org
Message-ID: <9108e037-e8fd-4e9c-922e-779fb2c0c632@isocpp.org>
References: <f4a47328-5397-4e93-9453-ddb978256627@isocpp.org>
 <CAMmfjbMSL3z1U_ektHTrY2mMrphnOc+2K04WM5gu2FiiZxiyJw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_617_495200096.1488100745321"
X-Trace: blaine.gmane.org 1488100750 6181 195.159.176.226 (26 Feb 2017 09:19:10 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 26 Feb 2017 09:19:10 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDY2PNGE6QOBBCV3ZLCQKGQEOTMZK2Q@isocpp.org Sun Feb 26 10:19:05 2017
Return-path: <std-proposals+bncBDY2PNGE6QOBBCV3ZLCQKGQEOTMZK2Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yb0-f200.google.com ([209.85.213.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDY2PNGE6QOBBCV3ZLCQKGQEOTMZK2Q@isocpp.org>)
	id 1chuyq-0000gm-OD
	for gclcip-std-proposals@m.gmane.org; Sun, 26 Feb 2017 10:19:00 +0100
Original-Received: by mail-yb0-f200.google.com with SMTP id t7sf91956119yba.1
        for <gclcip-std-proposals@m.gmane.org>; Sun, 26 Feb 2017 01:19:07 -0800 (PST)
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
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=N77t47Hueq2tfx6gFYRTEVyhcQrW5/nd8q05k8oh874=;
        b=r+XMfjo1k9I6zC3hI8nQAC0c1/4b+5Z5WYoahrWdSmJQyeO2wiHX9ZkokCqFtGWChB
         218xRkRt6wG+DiS4IFs3N495bomNzxSnJmv2gBpEEEtvjSk9W/xIoUBPGGIUnqLWR8Rp
         aVB6ktZzd+QF4vxXriDijPGUrRAZcUJDarRYNJU6W7fj/+pxWIRi0ZO6OgzIHQM6BTW1
         KKT1PDuZ5EMknXRiZGvvuhcHlXGf9c3R1LI+fuo+ljBfSoLs5VOFX4+StqPLi4SSJiz1
         As4YqGZhQt2BYLTujCub6iu3+tSC2cJjJ6eA9WXncVX25eBOv/nzp++dONnBHhOamSI2
         SDPw==
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
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=N77t47Hueq2tfx6gFYRTEVyhcQrW5/nd8q05k8oh874=;
        b=Z16nH4ylByWwG+m2sYd8nMoChyCFu9gQudW0/7vt+yE84cLcK7veUU/yG1JJjHgy7a
         z/i12ba9A6Zz0CDsQ9ttqgOHhyJVSmk+vRsAbUTaQeqSHYfnrhUWdJI6ONS4SZG8XsEt
         BU++3MfS0Vylw+XiIK7L0bQPQFMEwyqRbRURzUkOPucLqBykJ0nPaxlfAFps5Pq7qGq5
         D5cc5aNBXZ0vpz3IoFO1OtCr47b7Kj79tbR2Moz7iqWE7nwRXQyUcy3LfwXSIAn9ktGD
         IcWkV1AoXLI4UshYPBZOD9d4ajmp4uEHQL0teBYsZTMAzX50Ewtnl07RrHUwKGJQfYNb
         GW1w==
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=N77t47Hueq2tfx6gFYRTEVyhcQrW5/nd8q05k8oh874=;
        b=tGF+Gq8TotBxoCsaubx4yI4L5z+YngCYAnAI1IZz0672hcR5atVUFREjaC+/fJmbZw
         b77f2p13S96u7nOIIjQuapOFW5z1Rxcm4gs8VWTkqVHQBfuXltyPpxV17in1uYi1GmvG
         CAOw/JIPdEwTxwGbF1rggPzU928CbD2wGYRuWJMvm9DuRSRe0xci6fIrf5wnTuFa6wwu
         gmcrX/tIM/qww5agiVcZ4Uw3S9COBJ94eh6RPR0HDJnacNXU8Eu4SiHZc1DCB4z8YEWw
         ZWERWcy9yXOTv139rOTcTmheePun3TTxxJ0pMDf1JJumoQa/v0HblPRA7lA8//dBD6eH
         QgrQ==
X-Gm-Message-State: AMke39mIabeFatQzQEKWWXH9Bh2FDsImX1ISuR4bT6xOlhN8tVHYLQGP214qHRBgaWnzUw==
X-Received: by 10.129.166.84 with SMTP id d81mr823777ywh.29.1488100746624;
        Sun, 26 Feb 2017 01:19:06 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.24.121 with SMTP id t54ls10529148ott.28.gmail; Sun, 26 Feb
 2017 01:19:05 -0800 (PST)
X-Received: by 10.157.82.86 with SMTP id q22mr723195otg.3.1488100745891;
        Sun, 26 Feb 2017 01:19:05 -0800 (PST)
In-Reply-To: <CAMmfjbMSL3z1U_ektHTrY2mMrphnOc+2K04WM5gu2FiiZxiyJw@mail.gmail.com>
X-Original-Sender: redradist@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:31149
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31149>

------=_Part_617_495200096.1488100745321
Content-Type: multipart/alternative; 
	boundary="----=_Part_618_1046114279.1488100745321"

------=_Part_618_1046114279.1488100745321
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

For C++ it is not so long time ago 6 year vs almost 40 years of existence=
=20
the language =3D)))

=D0=B2=D0=BE=D1=81=D0=BA=D1=80=D0=B5=D1=81=D0=B5=D0=BD=D1=8C=D0=B5, 26 =D1=
=84=D0=B5=D0=B2=D1=80=D0=B0=D0=BB=D1=8F 2017 =D0=B3., 10:13:15 UTC+2 =D0=BF=
=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Brian Bi=
=20
=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
>
>
>
> On Sat, Feb 25, 2017 at 11:43 PM, Denis Kotov <redr...@gmail.com=20
> <javascript:>> wrote:
>
>> Hi All,
>>
>> My proposal is very simple. Just remove completely forward references=20
>> because of confusion that it makes until it is not too late !!
>>
>
> Sorry, you're about six years too late.
> =20
>
>> Basically if we have the following example:
>>
>>     template<typename T>
>>     void setItem(T && t)
>>     {
>>         ...
>>         // T can be *lvalue *or *rvalue *reference as all of you know  =
=20
>>     =20
>>     }
>>
>> But it confuses ( I think ) all of us.
>> Actually it even violates *SOLID *principale (S - Single=20
>> responsibility). I should use one function only for *rvalue *references=
=20
>> or for *lvalue *references. Mixing together handling of both references=
=20
>> is bad practice.
>>
>> What do you think ?
>>
>> --=20
>> You received this message because you are subscribed to the Google Group=
s=20
>> "ISO C++ Standard - Future Proposals" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n=20
>> email to std-proposal...@isocpp.org <javascript:>.
>> To post to this group, send email to std-pr...@isocpp.org <javascript:>.
>> To view this discussion on the web visit=20
>> https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/f4a47328-53=
97-4e93-9453-ddb978256627%40isocpp.org=20
>> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/f4a47328-5=
397-4e93-9453-ddb978256627%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoo=
ter>
>> .
>>
>
>
>
> --=20
> *Brian Bi*
>

--=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/9108e037-e8fd-4e9c-922e-779fb2c0c632%40isocpp.or=
g.

------=_Part_618_1046114279.1488100745321
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">For C++ it is not so long time ago 6 year vs almost 40 yea=
rs of existence the language =3D)))<br><br>=D0=B2=D0=BE=D1=81=D0=BA=D1=80=
=D0=B5=D1=81=D0=B5=D0=BD=D1=8C=D0=B5, 26 =D1=84=D0=B5=D0=B2=D1=80=D0=B0=D0=
=BB=D1=8F 2017 =D0=B3., 10:13:15 UTC+2 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=
=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Brian Bi =D0=BD=D0=B0=D0=BF=D0=B8=D1=
=81=D0=B0=D0=BB:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin=
-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"lt=
r"><br><div><br><div class=3D"gmail_quote">On Sat, Feb 25, 2017 at 11:43 PM=
, Denis Kotov <span dir=3D"ltr">&lt;<a href=3D"javascript:" target=3D"_blan=
k" gdf-obfuscated-mailto=3D"AHdTg8SRAgAJ" rel=3D"nofollow" onmousedown=3D"t=
his.href=3D&#39;javascript:&#39;;return true;" onclick=3D"this.href=3D&#39;=
javascript:&#39;;return true;">redr...@gmail.com</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi All,</div><div><br><=
/div><div>My proposal is very simple. Just remove completely=C2=A0forward r=
eferences because of confusion that it makes until it is not too late !!</d=
iv></div></blockquote><div><br></div><div>Sorry, you&#39;re about six years=
 too late.<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div di=
r=3D"ltr"><div>Basically if we have the following example:</div><div><br></=
div><div>=C2=A0 =C2=A0 template&lt;typename T&gt;</div><div>=C2=A0 =C2=A0 v=
oid setItem(T &amp;&amp; t)</div><div>=C2=A0 =C2=A0 {</div><div>=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 ...</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 // T can be <b>=
lvalue </b>or <b>rvalue </b>reference as all of you know =C2=A0 =C2=A0 =C2=
=A0 =C2=A0</div><div>=C2=A0 =C2=A0 }</div><div><br></div><div>But it confus=
es ( I think ) all of us.</div><div>Actually it even violates <b>SOLID </b>=
principale (S - Single responsibility). I should use one function only for =
<b>rvalue </b>references or for <b>lvalue </b>references. Mixing together h=
andling of both references is bad practice.</div><div><br></div><div>What d=
o you think ?</div></div><span><font color=3D"#888888">

<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"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"=
AHdTg8SRAgAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;javascript:&=
#39;;return true;" onclick=3D"this.href=3D&#39;javascript:&#39;;return true=
;">std-proposal...@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"javascript:" target=3D"_bla=
nk" gdf-obfuscated-mailto=3D"AHdTg8SRAgAJ" rel=3D"nofollow" onmousedown=3D"=
this.href=3D&#39;javascript:&#39;;return true;" onclick=3D"this.href=3D&#39=
;javascript:&#39;;return true;">std-pr...@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/f4a47328-5397-4e93-9453-ddb978256627%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank" =
rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;https://groups.google.com/=
a/isocpp.org/d/msgid/std-proposals/f4a47328-5397-4e93-9453-ddb978256627%40i=
socpp.org?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" on=
click=3D"this.href=3D&#39;https://groups.google.com/a/isocpp.org/d/msgid/st=
d-proposals/f4a47328-5397-4e93-9453-ddb978256627%40isocpp.org?utm_medium\x3=
demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com=
/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/f4a47328-5397-4e93-<wbr>9453-=
ddb978256627%40isocpp.org</a><wbr>.<br>
</font></span></blockquote></div><br><br clear=3D"all"><br>-- <br><div><div=
 dir=3D"ltr"><div><div dir=3D"ltr"><font color=3D"#c0c0c0"><i>Brian Bi</i><=
/font><br><div></div><div></div><div></div></div></div></div></div>
</div></div>
</blockquote></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/9108e037-e8fd-4e9c-922e-779fb2c0c632%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/9108e037-e8fd-4e9c-922e-779fb2c0c632=
%40isocpp.org</a>.<br />

------=_Part_618_1046114279.1488100745321--

------=_Part_617_495200096.1488100745321--

.
