220 40934 <AB167E1A-FA59-4B72-A9C2-1624D1B56614@hsr.ch> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Peter Sommerlad <peter.sommerlad@hsr.ch>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Can we have beginner friendly new line and
 deprecate std::endl?
Date: Fri, 9 Nov 2018 07:22:15 +0100
Lines: 95
Approved: news@gmane.org
Message-ID: <AB167E1A-FA59-4B72-A9C2-1624D1B56614@hsr.ch>
References: <e17189bf-51be-496d-845a-3707a516a210@isocpp.org> <CAMmfjbOkdN63EON+hrCJWj94n48vtVvMfUjzeau5KmPWSpwkow@mail.gmail.com> <CAHSYqdYYZjeHHbRZ5bcHLYVsWfspwCeQ8oxEDRbuJ8dqAtsX5A@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0 (1.0)
Content-Type: multipart/alternative;
	boundary="Apple-Mail-D2FD25BE-7B71-4D6C-936F-D63E4DABBAB3"
Content-Transfer-Encoding: 7bit
X-Trace: blaine.gmane.org 1541744421 9848 195.159.176.226 (9 Nov 2018 06:20:21 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 9 Nov 2018 06:20:21 +0000 (UTC)
To: <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD3OHQEN4AJBBIGPSTPQKGQES6JIS2Y@isocpp.org Fri Nov 09 07:20:17 2018
Return-path: <std-proposals+bncBD3OHQEN4AJBBIGPSTPQKGQES6JIS2Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ed1-f69.google.com ([209.85.208.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBD3OHQEN4AJBBIGPSTPQKGQES6JIS2Y@isocpp.org>)
	id 1gL09P-0002Pq-Lr
	for gclcip-std-proposals@m.gmane.org; Fri, 09 Nov 2018 07:20:15 +0100
Original-Received: by mail-ed1-f69.google.com with SMTP id z7-v6sf658958edh.19
        for <gclcip-std-proposals@m.gmane.org>; Thu, 08 Nov 2018 22:22:26 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1541744546; cv=pass;
        d=google.com; s=arc-20160816;
        b=b9toKNcj1j2RPviynJlT1xGQbvHwSJHIk42sgthnEWZ5V2oMGvmC63FTKCESlKqNyh
         lajYSKtyC/DdRSvbvG2FFdp0iLtJSz6gR21RthsXDsPnF3zVQ7dqnFSiUWS1xm0DVno6
         rgZgILE/QARWTss3DgPG/JqGHXaNomdqCbGR9wYiqu1CSD9/hHLW+EKzpn/JkuF4iObH
         pxsGhKkk6UdU+7r9iJH6iQokXkbmLPZcXIDTv3PlVNG3i2yuVvuuM5DRNoONFD5pU4Kb
         oaWas8ZS9bTApoMEIxtHzHmQ0+1kwMW0JkzyrVOB/8tllvwtwFW+KSTQSxHthY6RUYBL
         PTjw==
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:in-reply-to:to:references
         :date:message-id:subject:mime-version:from:content-transfer-encoding
         :dkim-signature;
        bh=HhCsEzbZ5Xk/zoPzkxR/2DwLZrBcP4M3LmAclP0pvHw=;
        b=SXlE05edIPTT5EqWiD0264K1RFSo2VlqKFKIOyeTwXUH9vmwTVs/EaDbzAL1eXziPv
         Jht35X8RneP49WS18KAFSwip58cEYqQBj3CSLsmknf1JIQm/oiqLMPZ/bKGN2whSxtVD
         3BjLRBTgSHGM3+ZhEn8m2n0Kqpr1WLLAJSL83sEPQtsTVzfGHqSTBam+vABQEowJth63
         uYLds4G6rjMgu3GznRui6vzlg9HVkcl+RNpNCQGDSE6c6KFpYpnYRboyT4K6E/XhC6Ad
         hk0WBUvLPaz3VH6UZUrwVHcFMJN9880bpxvZNzik6q/WA9BxrUYkA8+5RPPzAY4C2B2a
         CxvQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of peter.sommerlad@hsr.ch designates 2001:620:130:a036::31 as permitted sender) smtp.mailfrom=peter.sommerlad@hsr.ch
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=content-transfer-encoding:from:mime-version:subject:message-id:date
         :references:to:in-reply-to: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=HhCsEzbZ5Xk/zoPzkxR/2DwLZrBcP4M3LmAclP0pvHw=;
        b=SsjSGqI4lpy2sW3xP7f+mnKRzNYG9WHUX2RDzTSqxRAZpggf1iTGr614FugqzDcF2D
         kmJjRx08dd1DpU3OZApw584WQVEoRNj5zA6r4OhD3JQG4iTEKb7lKGhS/oWGisfAZgHq
         EB8Lff82oecu/gmWwJX8z4G/VISMBFwZv31QURwPPWsjZMwNBJ6gw2DiEmGEG6OaxdLK
         jyB3bN3UtsQjEd3nB5uoxfBNoAc5IMgFEPyNYXq87GsH4J5nrW1c2ayRgZQbmFBVNOPL
         2BJ1nRkmtt3BovXbQcB1eS8TnzGpYvlmKgRxSNiyqESPt9YvYDqAN2UdFWDXwD4gyofc
         IYTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:content-transfer-encoding:from:mime-version
         :subject:message-id:date:references:to:in-reply-to: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=HhCsEzbZ5Xk/zoPzkxR/2DwLZrBcP4M3LmAclP0pvHw=;
        b=hgLhWYs/kRxNnZL6AWn0RU/M77vfgbCaF3SBGdD61cNK9zHV1eP23JbwJH31sj8Tgw
         OXy9V+SjTDVYIUlNjBtLlRFq5a+jW6TSNKxrvwNr9TAr45bJdMzolhkZ+CXsuTdqcesy
         E++kWf9m9LaeXE3mwb5L5o/LZWHCLTjRtrTo0moq57z1vx6FMMUB6529QG4WBn5rOBw+
         SpX/L+lmtEtd4vLXP+R6DkphAa8yPuQyGD9saB3i/kde4YtSUBV/kKj/EP8cG189r/cU
         l+9/9nXmTa9QfJk5+Lls8jqy9qLQtpaJkZBOThqiWy7rygKLnTzmFR1HkCdz9TBxSOv8
         m97 
X-Gm-Message-State: AGRZ1gLEMRCxyGru5S74mTrIScaZKc6K/SOOnB9fRUaDP94YfiDNuXWw
	iz/mESFuKOxGojJKSnrkCJCWsA==
X-Google-Smtp-Source: AJdET5cHTU3Iw44/85qh4jEHxQVmvzzsDDEOz6APren2gkHUy4KrZ3IC5TZrRizo6ZYznKGK9dMseQ==
X-Received: by 2002:a17:906:6ace:: with SMTP id q14-v6mr202294ejs.7.1541744545925;
        Thu, 08 Nov 2018 22:22:25 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a50:b7b1:: with SMTP id h46-v6ls207570ede.14.gmail; Thu, 08
 Nov 2018 22:22:24 -0800 (PST)
X-Received: by 2002:a50:a9c4:: with SMTP id n62-v6mr1146339edc.187.1541744544362;
        Thu, 08 Nov 2018 22:22:24 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1541744544; cv=none;
        d=google.com; s=arc-20160816;
        b=P+yuWzzFOE/hBcZRmYLTtEtI0CQ1YpWPsUDNoTdZ7qdffOkpiy1GJMyxIkH0RzRWjV
         lwQ6pID01wkmVp6QU2bqd8fMbI9ylFRKqfxT/xjdSyu4KUS6xjfAalyK/sRcP/Obco+z
         mmtzBngpPyiAv+8JjfHQwgD7fVrUGtKHTtFyAIkQPXDq9NXLL6bWbF/Xk3JHl64R0kXi
         CEcu0CEPsAgb5xHHc7flSUwvP/j3poFuGB8KeUkrWfKsVYebpF/8fXjIx41mHbOHrQWV
         JG8HfnpigyumpuUerGI5pjTl+cTfPWzC4MG1tUQO+2V0qCmbCZDJFwmZ46g+ueP426Uo
         z/Ug==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=in-reply-to:to:references:date:message-id:subject:mime-version:from
         :content-transfer-encoding;
        bh=Qg3G5Hnu0LcpMpDhx/GY3O86IKiab9Nnzq5SA2Izvdk=;
        b=mMc98HrK3qiubSeT0k5uVNvGQIdlLF6I5oSfS79KMFx9Qg6bGi01KytcJDIW2u8H4q
         tmY3CM0lpQFEkKd5IUrDNcSJuV9K+CO1ZbsguTH1sCC3dDBNkIcJzctMSqUnYeEf8MHf
         CNM4As66q90SbDCJQEkqc4ZHUmH24zmko1JQcm81BV8hPm56yIas8/V10Q6J4edJgqb8
         VklAWnIxY3WgQKJG2F4zObBNbRo543YbLuvSO/0uGGlJuWd0TosBGG7mAOq1NnXIA1SR
         zUYzajonBCH8PLoQHc5uxpCO3yNahrh9tvYBJeYLqTb9e1ArIY6kQvCvwQYbl3lcwYSR
         tCAw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of peter.sommerlad@hsr.ch designates 2001:620:130:a036::31 as permitted sender) smtp.mailfrom=peter.sommerlad@hsr.ch
Original-Received: from mx1.hsr.ch (mx1.hsr.ch. [2001:620:130:a036::31])
        by mx.google.com with ESMTPS id n21si3342445edy.344.2018.11.08.22.22.24
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
        Thu, 08 Nov 2018 22:22:24 -0800 (PST)
Received-SPF: pass (google.com: domain of peter.sommerlad@hsr.ch designates 2001:620:130:a036::31 as permitted sender) client-ip=2001:620:130:a036::31;
Original-Received: from localhost (localhost [127.0.0.1])
	by mx1.hsr.ch (Postfix) with ESMTP id 9B80A23B6CD7
	for <std-proposals@isocpp.org>; Fri,  9 Nov 2018 07:22:23 +0100 (CET)
Original-Received: from mx1.hsr.ch ([127.0.0.1])
	by localhost (mx1.hsr.ch [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id BRvQL4VkK8BO for <std-proposals@isocpp.org>;
	Fri,  9 Nov 2018 07:22:21 +0100 (CET)
Original-Received: from webmail.hsr.ch (sid00233.hsr.ch [152.96.21.233])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by mx1.hsr.ch (Postfix) with ESMTPS id 2A74823B6CD4
	for <std-proposals@isocpp.org>; Fri,  9 Nov 2018 07:22:21 +0100 (CET)
Original-Received: from [192.168.1.16] (152.96.21.199) by sid00233.hsr.ch
 (152.96.21.236) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Fri, 9 Nov 2018
 07:22:20 +0100
In-Reply-To: <CAHSYqdYYZjeHHbRZ5bcHLYVsWfspwCeQ8oxEDRbuJ8dqAtsX5A@mail.gmail.com>
X-Mailer: iPad Mail (16B92)
X-Originating-IP: [152.96.21.199]
X-ClientProxiedBy: sid00233.hsr.ch (152.96.21.236) To sid00233.hsr.ch
 (152.96.21.236)
X-Original-Sender: peter.sommerlad@hsr.ch
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of peter.sommerlad@hsr.ch designates 2001:620:130:a036::31 as
 permitted sender) smtp.mailfrom=peter.sommerlad@hsr.ch
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:40934
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40934>

--Apple-Mail-D2FD25BE-7B71-4D6C-936F-D63E4DABBAB3
Content-Type: text/plain; charset="UTF-8"

So the better way is do better teaching. I show my students that they should not use endl, except when they need it.

Sent from Peter Sommerlad's iPad
+41 79 432 23 32

> On 8 Nov 2018, at 23:43, Hyman Rosen <hyman.rosen@gmail.com> wrote:
> 
>> On Thu, Nov 8, 2018 at 5:08 PM Brian Bi <bbi5291@gmail.com> wrote:
>> I think the reason why novices use std::endl is that they're under the impression (no doubt perpetuated by incompetent educators) that std::endl is portable whereas '\n' isn't.
> 
> I think novices use std::endl because that's how C++ formatted I/O
> was presented for ages.  I have the feeling, completely unsupported
> by evidence, that the iostreams designers thought manipulators were
> really keen, and wanted to have one that would always get used.
> -- 
> 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/CAHSYqdYYZjeHHbRZ5bcHLYVsWfspwCeQ8oxEDRbuJ8dqAtsX5A%40mail.gmail.com.

-- 
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/AB167E1A-FA59-4B72-A9C2-1624D1B56614%40hsr.ch.

--Apple-Mail-D2FD25BE-7B71-4D6C-936F-D63E4DABBAB3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=
=3Dutf-8"></head><body dir=3D"auto">So the better way is do better teaching=
.. I show my students that they should not use endl, except when they need i=
t.<br><br><div id=3D"AppleMailSignature" dir=3D"ltr">Sent from Peter Sommer=
lad's<span class=3D"Apple-style-span" style=3D"-webkit-tap-highlight-color:=
 rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192,=
 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.2304=
69); ">&nbsp;iPad</span><div><span class=3D"Apple-style-span" style=3D"-web=
kit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fi=
ll-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: r=
gba(77, 128, 180, 0.230469); ">+41 79 432 23 32</span></div></div><div dir=
=3D"ltr"><br>On 8 Nov 2018, at 23:43, Hyman Rosen &lt;<a href=3D"mailto:hym=
an.rosen@gmail.com">hyman.rosen@gmail.com</a>&gt; wrote:<br><br></div><bloc=
kquote type=3D"cite"><div dir=3D"ltr"><meta http-equiv=3D"Content-Type" con=
tent=3D"text/html; charset=3Dutf-8"><div dir=3D"ltr"><div class=3D"gmail_qu=
ote"><div dir=3D"ltr">On Thu, Nov 8, 2018 at 5:08 PM Brian Bi &lt;<a href=
=3D"mailto:bbi5291@gmail.com">bbi5291@gmail.com</a>&gt; wrote:</div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><div>I =
think the reason why novices use std::endl is that they're under the impres=
sion (no doubt perpetuated by incompetent educators) that std::endl is port=
able whereas '\n' isn't.</div></div></div></blockquote><div><br>I think nov=
ices use std::endl because that's how C++ formatted I/O<br>was presented fo=
r ages.&nbsp; I have the feeling, completely unsupported<br>by evidence, th=
at the iostreams designers thought manipulators were<br>really keen, and wa=
nted to have one that would always get used.</div></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" 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/CAHSYqdYYZjeHHbRZ5bcHLYVsWfspwCeQ8oxE=
DRbuJ8dqAtsX5A%40mail.gmail.com?utm_medium=3Demail&amp;utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAHSYqdYYZjeH=
HbRZ5bcHLYVsWfspwCeQ8oxEDRbuJ8dqAtsX5A%40mail.gmail.com</a>.<br>
</div></blockquote></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/AB167E1A-FA59-4B72-A9C2-1624D1B56614%=
40hsr.ch?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/=
a/isocpp.org/d/msgid/std-proposals/AB167E1A-FA59-4B72-A9C2-1624D1B56614%40h=
sr.ch</a>.<br />

--Apple-Mail-D2FD25BE-7B71-4D6C-936F-D63E4DABBAB3--

.
