220 33440 <344B1400-86F7-4D11-A7B0-ABB44D5AF397@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Bryce Glover <randomdsdevel@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re:  [idea for proposal] Adding std::shift to <algorithm>
Date: Sat, 29 Jul 2017 22:56:39 -0400
Lines: 149
Approved: news@gmane.org
Message-ID: <344B1400-86F7-4D11-A7B0-ABB44D5AF397@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_81AC97CD-9950-4988-9B14-10761E02E597"
X-Trace: blaine.gmane.org 1501383406 1190 195.159.176.226 (30 Jul 2017 02:56:46 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 30 Jul 2017 02:56:46 +0000 (UTC)
Cc: std-proposals@isocpp.org
To: Dan Raviv <dan.raviv@gmail.com>
Original-X-From: std-proposals+bncBCPMBF5ZZEBBB2UV6XFQKGQEMQV6KCQ@isocpp.org Sun Jul 30 04:56:39 2017
Return-path: <std-proposals+bncBCPMBF5ZZEBBB2UV6XFQKGQEMQV6KCQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f69.google.com ([209.85.214.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCPMBF5ZZEBBB2UV6XFQKGQEMQV6KCQ@isocpp.org>)
	id 1dbePG-0008NX-7S
	for gclcip-std-proposals@m.gmane.org; Sun, 30 Jul 2017 04:56:38 +0200
Original-Received: by mail-it0-f69.google.com with SMTP id g17sf133688216itb.11
        for <gclcip-std-proposals@m.gmane.org>; Sat, 29 Jul 2017 19:56:44 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1501383403; cv=pass;
        d=google.com; s=arc-20160816;
        b=e25a7fkiE9nEDgzCt7hw0fLZBAsUmjLT2GQdwqUnlLgCxiwHL5/H/s2lDyMjUOUYU+
         Oy8gl53j9apQfAxA9oe+hMmLTY4hQSh6jXmCvzdwwLose0uvCu3r40whpcY3Ph5gaZCn
         fViaxFrEdfkS1HDFoU+A6TWDgoHVwqk3GBDDxPtCpB5ZW4mZhPGW6TpaUrOFJt5/nQTi
         1t9o7wxGFyE4kKRiN5Bp1pkVnViVimj4YwxdjXe9+PxBpe+GlRRNO1fHUgb1lx3JqqEm
         WE30vi3BnJUJdMwkKhq7AoJHf5rBWU3eNKbOmyFOCEswaD/ZkjInsL34hOZKbtqaCv/D
         RpKA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:to:cc
         :message-id:date:subject:from:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=Gam4aJnAjVbp8G1B3tNqGrXxc5lqdNkRDpQjLSh6UbM=;
        b=KD2jmpZu4Gnx6Bl4srB7Ey+emEPz+wG8Y+8gNLL35c5vSRo+IuQKNOsq9qCF7TGwFh
         /hmnHcsLpQfqp9/oXQicGSvnDnsjCxMVMdS3UfCyTBPTYaV0kXFJLhJX1MssH9h4W7FD
         /SAP2FUslqAHidxpROW7rOLvfMuS+2Z4YT7nvjuZDEFmpDiJF4oLnzC3QE/dXlIFJom4
         5aDgD6LlT81sBOYenafoFvn4ZvUXzMMz4cqGEJxkiVpz2yanFxJqPzX0i7ql3WzUdhol
         kCAHPTe9gYgpHh/FTHX+eEddJ4MCIveglIqeRQKmFfI8YOv71z2X6MFCy7pKso7fstcm
         a6zg==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=Nsirxjn0;
       spf=pass (google.com: domain of randomdsdevel@gmail.com designates 2607:f8b0:4001:c0b::244 as permitted sender) smtp.mailfrom=randomdsdevel@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:subject:date:message-id:cc:to:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=Gam4aJnAjVbp8G1B3tNqGrXxc5lqdNkRDpQjLSh6UbM=;
        b=zablgcAi0W6cZzkD/dAkqhigrv4lnvb/NoDIi3ClBXBDRI8g5AwsD1Ixut/ydpivUQ
         QWVf9nGPd9c1c3gfwCaO8M3Z7akhVTCbS9s3N/DsM35yZJhV3serI8T7hBHY/ZFCrnqu
         sjkw0u4l5t3viMDpYcCvNJPo8Xpw+YX71k3sJ0Bhxi0QamKbol/ToBz67cBn4hIGvWaS
         BL/i3z+HUXI/+FdTJEx3UXr7YBcb6eDN687RFt2MDJPeXv51002HRbltI8NAi5a2JWx3
         FOIjGctZLGIAWmHPKGzbNZmQ5fOmA5QIOOlpcdF76PXp3MzD8eGmus9FrgsQ7IFXh/y3
         jdDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:subject:date:message-id:cc:to:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=Gam4aJnAjVbp8G1B3tNqGrXxc5lqdNkRDpQjLSh6UbM=;
        b=nptZw/ivG7hD5RCzMk/MgIBGLVKBp+SjrSheOkxfChLwECC/VAYu0qD+2skry9Nb/N
         2OeTL5Pw7qBfwHn/9qL6avPY0v2hWPxiMRiT/RWWpNWYrtAvisol9QrFarDqBr3BP+Pt
         CSZT5qAjAMgU62Ea5HRvn6KiWlL+a/bM/qTUjN0F3jOl8guAvw6z4uuBemq6oeM5uag9
         G0rTMWyOVWkBPpNTvP6El2135udi/zISqmWgYJYmtn4eq318NaBNkp6tiJ8j7atmGSxf
         oWZCSHn7Ifo7lKMzyviSwH81LBHInkvz0aWqB0w233wndOKY9a9gxIR/XPmHMzpTKcE5
         jZ2w==
X-Gm-Message-State: AIVw112o45FS2cJpuOmaGE4Uo37loqRNm97O9LZcTKOTCxaopV3Qu0zd
	Uzu+xxIdEbOvjF8W
X-Received: by 10.36.198.130 with SMTP id j124mr7620707itg.47.1501383403706;
        Sat, 29 Jul 2017 19:56:43 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.6.25 with SMTP id 25ls6546243iog.13.gmail; Sat, 29 Jul
 2017 19:56:42 -0700 (PDT)
X-Received: by 10.107.135.33 with SMTP id j33mr15705447iod.257.1501383402149;
        Sat, 29 Jul 2017 19:56:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1501383402; cv=none;
        d=google.com; s=arc-20160816;
        b=S04VLJGjEeAQzWLeR6HyZXI6A4nLDfM5ORa+j/YQnyGizlX0t1gRa9NgDftwD5S9HL
         ikeX/B3i0PAOGz9jvjDlAcGC2hNTTOyJPIRw+wahk+/O7IFrrl3W/AMtMNM0x+1A8HRD
         AM6XuyjUcHTKHMPx8yIYFWeSSjEUWcobRlssVeiUJLG4UDMhYcJFQI9gq8K8DDH8Su5Y
         GWwLCjjpfuPZXjZN89QmZYzP5MB204lvkSfETERkvxlTXd8Cd+HGV0dfF/njBKDrxmqV
         Xn8nKD9mC8EQ7tUqvawBqPRvny2Bs3l6etPh75ezpoRzmxQLnTbkgKnt/8HUa3m+IML/
         iFOw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=mime-version:to:cc:message-id:date:subject:from:dkim-signature
         :arc-authentication-results;
        bh=Afr++P27vIGiBABbb6/i+rLC6ySojj2QULbIb146Y84=;
        b=PxtH6JPSu+dQgt7Sp9ICqZVyEwvOTGj8uwFU9vOjJcj2ln1P+CcI/TTHHQEZFnyK1l
         eGjvHJT/khqzl4kEUjFRhjXcyWIEb9GrVghO/yFY3djCHoPqxIrDzT+rSHY49sS1jlU9
         Dmh9mJex6kd4+ui5+cGGJB4MxrYhal6U3y/dew6BP2zqWZqyqPzPHkq7Ndknov8yw10F
         P27h8d1WQY7kvFc5Lkw7y2t+3APPh0OHMbtwmacHpXQAcTlRf+1KCBE589rxj1bPJOcu
         9ZPL6MS9la23c++Nb9qFeOdW6JE1yAkzocbh+dsWFpyj+7wsnAJMNJSJksXlkSYYmUqb
         8uvw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=Nsirxjn0;
       spf=pass (google.com: domain of randomdsdevel@gmail.com designates 2607:f8b0:4001:c0b::244 as permitted sender) smtp.mailfrom=randomdsdevel@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-it0-x244.google.com (mail-it0-x244.google.com. [2607:f8b0:4001:c0b::244])
        by mx.google.com with ESMTPS id 64si23865740ioo.255.2017.07.29.19.56.42
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 29 Jul 2017 19:56:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of randomdsdevel@gmail.com designates 2607:f8b0:4001:c0b::244 as permitted sender) client-ip=2607:f8b0:4001:c0b::244;
Original-Received: by mail-it0-x244.google.com with SMTP id 77so14528680itj.4
        for <std-proposals@isocpp.org>; Sat, 29 Jul 2017 19:56:42 -0700 (PDT)
X-Received: by 10.36.135.202 with SMTP id f193mr14336474ite.48.1501383401959;
        Sat, 29 Jul 2017 19:56:41 -0700 (PDT)
Original-Received: from [10.0.1.5] (c-68-50-177-220.hsd1.in.comcast.net. [68.50.177.220])
        by smtp.gmail.com with ESMTPSA id a127sm10125067itd.33.2017.07.29.19.56.40
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Sat, 29 Jul 2017 19:56:40 -0700 (PDT)
X-Mailer: Apple Mail (2.3124)
X-Original-Sender: RandomDSdevel@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.b=Nsirxjn0;       spf=pass (google.com: domain of
 randomdsdevel@gmail.com designates 2607:f8b0:4001:c0b::244 as permitted
 sender) smtp.mailfrom=randomdsdevel@gmail.com;       dmarc=pass (p=NONE
 sp=NONE dis=NONE) header.from=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:33440
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33440>


--Apple-Mail=_81AC97CD-9950-4988-9B14-10761E02E597
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"

Dear Mr. Raviv,=20

     Here are a thread lurker=E2=80=99s comments on your proposal.  First, =
your first footnote reads: =20

> =C2=B9 Technically, in some cases std::move can be used with reverse iter=
ators to implement a shift of elements forward, but not in all cases and it=
 is also less efficient, see https://groups.google.com/a/isocpp.org/d/msg/s=
td-proposals/I76om68B3t0/25bGu7O6AwAj <https://groups.google.com/a/isocpp.o=
rg/d/msg/std-proposals/I76om68B3t0/25bGu7O6AwAj> and https://groups.google.=
com/a/isocpp.org/d/msg/std-proposals/I76om68B3t0/SPTeZdofAQAJ <https://grou=
ps.google.com/a/isocpp.org/d/msg/std-proposals/I76om68B3t0/SPTeZdofAQAJ>. =
=20

Within this statement, the part saying, =E2=80=9Cstd::move can be used with=
 reverse iterators to implement a shift of elements forward,=E2=80=9D shoul=
d either read, =E2=80=9Cstd::move can be used with reverse iterators to imp=
lement a shift of elements backward,=E2=80=9D (emphasis added by me) or, =
=E2=80=9Cstd::move_backwards can be used with reverse iterators to implemen=
t a shift of elements forward,=E2=80=9D (emphasis here also added by me,) a=
s only one of these alternatives could render the sentence self-consistent =
with both itself and the rest of your document.  Also, your use of =E2=80=
=98in some cases=E2=80=99 should be followed by a comma, though I acknowled=
ge that two comma-suffixed dependent <https://en.wikipedia.org/wiki/Depende=
nt_clause> relative clauses <https://en.wikipedia.org/wiki/Relative_clause>=
 (at least, I think that=E2=80=99s what they=E2=80=99re called; you can cor=
rect me if my grammar=E2=80=99s off) coming one after another at the beginn=
ing of a sentence can read somewhat awkwardly.  A reasonable way around tha=
t stylistic issue would be to keep =E2=80=99Technically, =E2=80=A6=E2=80=99=
 at the beginning of the sentence, but move =E2=80=98in some cases=E2=80=99=
 later on within it=E2=80=89=E2=80=94=E2=80=89specifically, between =E2=80=
=98can=E2=80=99 and =E2=80=98be=E2=80=99 such that the resulting sentence f=
ragment would, properly using commas as delimiters, read as, =E2=80=9C=E2=
=80=A6, std::move can, in some cases, be used=E2=80=A6.=E2=80=9D  (If the t=
hought of splitting infinitives brings you distaste, I can explain myself: =
 it turns out that the validity of the rule against doing so is actually a =
matter of dispute <https://en.wikipedia.org/wiki/West_Germanic_languages>.)=
 =20
     Second, you might wish to reevaluate your use of fonts:  some function=
 names referenced within particular sentences are not in code font when the=
y should be.  Other than these concerns and those parts of your proposal wh=
ich you have yet to fill in, the document hosting it looks good so far. =20

Regards,=20
     Bryce Glover
     RandomDSdevel@gmail.com

--=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/344B1400-86F7-4D11-A7B0-ABB44D5AF397%40gmail.com=
..

--Apple-Mail=_81AC97CD-9950-4988-9B14-10761E02E597
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D""><div class=3D"">De=
ar Mr. Raviv,&nbsp;</div><div class=3D""><br class=3D""></div><div class=3D=
"">&nbsp; &nbsp; &nbsp;Here are a thread lurker=E2=80=99s comments on your =
proposal. &nbsp;First, your first footnote reads: &nbsp;</div><div class=3D=
""><br class=3D""></div><div class=3D""><blockquote type=3D"cite" class=3D"=
">=C2=B9 Technically, in some cases std::move can be used with reverse iter=
ators to implement a shift of elements forward, but not in all cases and it=
 is also less efficient, see <a href=3D"https://groups.google.com/a/isocpp.=
org/d/msg/std-proposals/I76om68B3t0/25bGu7O6AwAj" class=3D"">https://groups=
..google.com/a/isocpp.org/d/msg/std-proposals/I76om68B3t0/25bGu7O6AwAj</a>&n=
bsp;and <a href=3D"https://groups.google.com/a/isocpp.org/d/msg/std-proposa=
ls/I76om68B3t0/SPTeZdofAQAJ" class=3D"">https://groups.google.com/a/isocpp.=
org/d/msg/std-proposals/I76om68B3t0/SPTeZdofAQAJ</a>. &nbsp;</blockquote></=
div><br class=3D""><div class=3D"">Within this statement, the part saying, =
=E2=80=9Cstd::move can be used with reverse iterators to implement a shift =
of elements forward,=E2=80=9D should either read, =E2=80=9Cstd::move can be=
 used with reverse iterators to implement a shift of elements <i class=3D""=
>backward</i>,=E2=80=9D (emphasis added by me) or, =E2=80=9Cstd::move<i cla=
ss=3D"">_backwards</i>&nbsp;can be used with reverse iterators to implement=
 a shift of elements forward,=E2=80=9D (emphasis here also added by me,) as=
 only one of these alternatives could render the sentence self-consistent w=
ith both itself and the rest of your document. &nbsp;Also, your use of =E2=
=80=98in some cases=E2=80=99 should be followed by a comma, though I acknow=
ledge that two comma-suffixed&nbsp;<a href=3D"https://en.wikipedia.org/wiki=
/Dependent_clause" class=3D"">dependent</a>&nbsp;<a href=3D"https://en.wiki=
pedia.org/wiki/Relative_clause" class=3D"">relative clauses</a>&nbsp;(at le=
ast, I <i class=3D"">think</i>&nbsp;that=E2=80=99s what they=E2=80=99re cal=
led; you can correct me if my grammar=E2=80=99s off) coming one after anoth=
er at the beginning of a sentence can read somewhat awkwardly. &nbsp;A reas=
onable way around that stylistic issue would be to keep =E2=80=99Technicall=
y, =E2=80=A6=E2=80=99 at the beginning of the sentence, but move =E2=80=98i=
n some cases=E2=80=99 later on within it=E2=80=89=E2=80=94=E2=80=89specific=
ally, between =E2=80=98can=E2=80=99 and =E2=80=98be=E2=80=99 such that the =
resulting sentence fragment would, properly using commas as delimiters, rea=
d as, =E2=80=9C=E2=80=A6, std::move can, in some cases, be used=E2=80=A6.=
=E2=80=9D &nbsp;(If the thought of splitting infinitives brings you distast=
e, I can explain myself: &nbsp;it turns out that the validity of the rule a=
gainst doing so is actually&nbsp;<a href=3D"https://en.wikipedia.org/wiki/W=
est_Germanic_languages" class=3D"">a matter of dispute</a>.) &nbsp;</div><d=
iv class=3D"">&nbsp; &nbsp; &nbsp;Second, you might wish to reevaluate your=
 use of fonts: &nbsp;some function names referenced within particular sente=
nces are not in code font when they should be. &nbsp;Other than these conce=
rns and those parts of your proposal which you have yet to fill in, the doc=
ument hosting it looks good so far. &nbsp;</div><div class=3D""><br class=
=3D""></div><div class=3D"">
<div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; t=
ext-align: start; text-indent: 0px; text-transform: none; white-space: norm=
al; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-w=
rap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-=
space;" class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: norma=
l; orphans: auto; text-align: start; text-indent: 0px; text-transform: none=
; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke=
-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-=
break: after-white-space;" class=3D""><div style=3D"color: rgb(0, 0, 0); le=
tter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; t=
ext-transform: none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D""><div class=3D"">Re=
gards,&nbsp;</div><div class=3D"">&nbsp; &nbsp; &nbsp;Bryce Glover</div><di=
v class=3D"">&nbsp; &nbsp; &nbsp;<a href=3D"mailto:RandomDSdevel@gmail.com"=
 class=3D"">RandomDSdevel@gmail.com</a></div></div></div></div></div></body=
></html>

<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/344B1400-86F7-4D11-A7B0-ABB44D5AF397%=
40gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/344B1400-86F7-4D11-A7B0-ABB44D5AF397%=
40gmail.com</a>.<br />

--Apple-Mail=_81AC97CD-9950-4988-9B14-10761E02E597--

.
