220 40970 <CAP3wax_sPnk2FVbZj+KPoVcakkBAkGSP6ZcQZUSts52hc2E60g@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Bryce Adelstein Lelbach aka wash <brycelelbach@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Can we have beginner friendly new line and
 deprecate std::endl?
Date: Sun, 11 Nov 2018 17:26:28 -0800
Lines: 109
Approved: news@gmane.org
Message-ID: <CAP3wax_sPnk2FVbZj+KPoVcakkBAkGSP6ZcQZUSts52hc2E60g@mail.gmail.com>
References: <e17189bf-51be-496d-845a-3707a516a210@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000d4010b057a6d97f5"
X-Trace: blaine.gmane.org 1541985877 27794 195.159.176.226 (12 Nov 2018 01:24:37 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 12 Nov 2018 01:24:37 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCWL3JV7Z4FRBUNNUPPQKGQE6LWMYFI@isocpp.org Mon Nov 12 02:24:33 2018
Return-path: <std-proposals+bncBCWL3JV7Z4FRBUNNUPPQKGQE6LWMYFI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi1-f198.google.com ([209.85.167.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCWL3JV7Z4FRBUNNUPPQKGQE6LWMYFI@isocpp.org>)
	id 1gM0xs-00078Q-UL
	for gclcip-std-proposals@m.gmane.org; Mon, 12 Nov 2018 02:24:33 +0100
Original-Received: by mail-oi1-f198.google.com with SMTP id v73-v6sf4282662oie.12
        for <gclcip-std-proposals@m.gmane.org>; Sun, 11 Nov 2018 17:26:43 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1541986002; cv=pass;
        d=google.com; s=arc-20160816;
        b=gJFGM2GsTK+LLIT9vrrRRb887eMC0nNNjaZoP2RYC+NCN0kBl5BSBzPazS7hv5+MHt
         g/l+MraPwt5qRWP0RdM0Ujl6EWQH+teu90rUj0v7xWQnc4+weUmX9Fa8iZcj4udLQuSs
         zZaksKdDqEHbc8daBVYY8CTDAdMv1VqrqWrwds5rhW8VF7BGPz1RR1yJCYL+WM4yQ6Ql
         4sQhJZAkOCyU0tuYbXzdy4EEBfGmWsbB3ITdAB0pr1CHwJutzjxyl2vBAYaxYCpWl5kc
         gZn+7j/fIJxwC/ZMSpbqAVFfxnpQ1TwNR+V43EVzY6iX/H3uVwJr9xLEyfGYEGVlzqaK
         5Ubw==
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:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:dkim-signature;
        bh=DcVVZjjwgrrcy33zgQ8Tkfnz0+GRTsjvvIZFjaWD2iQ=;
        b=fdwagIo/r/SiyFJNTHpmJwc2U1J2BwcRaBMgz8PbJL+vAhC/aQixF4iySRYyotBXG3
         WFcVQUIVLf+752ts1mhwpPVdQl9ErqkNCa8d1NN+/SHsEesttFGaGOobDkje8U0Rg9JU
         WpCkVp8nNKTBB4l6UzSNxATSStn73H6k9IlaDMvFiuMpNQA5rEkouGV5OlAF/yafeRk1
         hKV0Jeo4u0FmC4u3ACMqVt849eK4uBAw9Cv8Qq8O9aAlqahns1A/gooHBniBNYEuew2m
         /NCDVsAvAupp/WiCo6fw3P02nV+oAuNsngVKMso40nQmXh9w5XzAVU690ZL49Q5LYtW9
         MMOw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sk+mlavA;
       spf=pass (google.com: domain of brycelelbach@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=brycelelbach@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE 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=mime-version:references:in-reply-to:from:date:message-id:subject: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=DcVVZjjwgrrcy33zgQ8Tkfnz0+GRTsjvvIZFjaWD2iQ=;
        b=13fCFsidZDku8HoEEYf2f2zAjahae4bsfyvtMOBAnN4BrhlsWEZ/BILQ/XFNr33ex5
         vJQkLoax/Xhs4VFw8fQinxvvQjjf2vQYcOkAxOuacTzCaC4hOdDpYJUu6neGuWPSBOt4
         Zpq9u1TZG/K/RuuDr5t9rFRMNbfrNjqE4SCbtuEoYT0jkgpMdJc80Gfx7ubTG7enAEmT
         ps2Tgb39Iy3tkx1H397FOMk4ytUmllcX5O4vBHTcji9SYSyj/yU13iEEMQnQzB+aal9x
         1mq6j1ppsVgZPyAPoSJMqngnN1/W/WbGseq5NOx0QalzBr2o76vAPDGM09L4TNULBbF/
         7b+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject: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=DcVVZjjwgrrcy33zgQ8Tkfnz0+GRTsjvvIZFjaWD2iQ=;
        b=VyTht3xzn9mQ48XyFwo3asQGb6AokfoVlnH6wgcM7iX3OW2EKIBy2voy51jsbWuc/u
         wU030/P+Umtp0oGsJ9Y0Qp48SReO0lKFeSm46/6J4CWEYLI03KVtc+f00ZsBsIn9XvlT
         r3t4+GJLsqhmanEQmT51Nvh10LUJp5SzZa2HVPB3BnxxCmVyYoOzKHsfe0tCdwWobkQU
         oU6gnzVsJNwcAJvg/vHuAzHdzbpHwLAL1+M53AMoYy+M2g0aXpBZTT517SCPUTdUxdaI
         vDj57aSWv95z/Qj2iRUmMx4Chk2dciNqPMk8kUlA6ZtN8B55ps4AguC7hamYaBozImcr
         xKrw==
X-Gm-Message-State: AGRZ1gIkLVtczQ7Z/z3H+e0H2oEye7+yFfK3bKrViWoAqoyUcWtFoBJB
	kx40ubA9uqFrj38yjfjg7pORBQ==
X-Google-Smtp-Source: AJdET5dBwoIsDp5F9sYzRBwYWhE4ahLDNP+1L0qTl3MUvmqTZuU//QXe8cgeFint7B9Ub8O+XBWYhg==
X-Received: by 2002:a9d:5b6b:: with SMTP id e40mr13716299otj.38.1541986002816;
        Sun, 11 Nov 2018 17:26:42 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:aca:3016:: with SMTP id w22-v6ls3048051oiw.3.gmail; Sun, 11
 Nov 2018 17:26:41 -0800 (PST)
X-Received: by 2002:aca:4382:: with SMTP id q124-v6mr10398643oia.240.1541986001477;
        Sun, 11 Nov 2018 17:26:41 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1541986001; cv=none;
        d=google.com; s=arc-20160816;
        b=ojwV5xEggOMyBXVcm0/Of9gxg0V3ruJaxfUm8HW030cTE7Sbm98BsTWOIhNjmq+TjI
         nx8GrdPGKk55qhm0eXFGv6e6HFJGM3D0fs4JfZB+c/lH/ODKrv/zcygFXeHHS/fTEphZ
         9pBs8TsEEKiuY0UHVR1diEyLKLjdnYPbROOTozY9vpi+3KGmh4+vCb3JFCP7zAAS0/++
         maeQCayx60Tl5CA6uzwCRU0a/C8wFvY8jmqL3rhBmtA+8Fwd6EVRWiZ/o9jq+Il5Nd2B
         lLzGa0iUfk+pOZ+30ZEwzqAZxOKM/LSoetVExMkHu/BDaPZ6KdEq4NLJoOz9Ahv2if/F
         C/HQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature;
        bh=jcK1CtDTEP8d3+DzCHoUAV4MAStCzqvQP/CqFldYNt8=;
        b=BtbRY9iAKaVVkV1xVffk2lGYaJAmcQ0SlLqIYv/azrHwSyu69dREW5nYtetLMRJmtn
         5zGYNq91h9dQHUhmX6B8kVEl/sZykGkO18pmTCIzOwk3N+PGIKElYId3h2RkDcy/rN5Z
         kMMUUvYQqAjSQmuMic/eLAsaS9I373Ne4u5+DU2LNrB+NTPkq+CylKDXyB562ec8yFGf
         tiGb2/M14rlQ7/JRsz1p4y9zAmkKr89XzU7kUx8kqBerOB2MnMphg14EqL6Ulkklm7yp
         GL47Yate+oAw8RZE/FawWdQA96kR8O7yXL+Q29as1ESRwp83BiyqyhIwvuTzuyr+iI3h
         5fPw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sk+mlavA;
       spf=pass (google.com: domain of brycelelbach@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=brycelelbach@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id d5sor8718659oth.138.2018.11.11.17.26.41
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sun, 11 Nov 2018 17:26:41 -0800 (PST)
Received-SPF: pass (google.com: domain of brycelelbach@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a9d:640d:: with SMTP id h13mr9065461otl.153.1541986000827;
 Sun, 11 Nov 2018 17:26:40 -0800 (PST)
In-Reply-To: <e17189bf-51be-496d-845a-3707a516a210@isocpp.org>
X-Original-Sender: brycelelbach@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=Sk+mlavA;       spf=pass
 (google.com: domain of brycelelbach@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=brycelelbach@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE 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-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:40970
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40970>

--000000000000d4010b057a6d97f5
Content-Type: text/plain; charset="UTF-8"

I'd rather just focus on providing a modern replacement for iostreams for
C++26, and aim to deprecate iostreams in the future.

Standard library dynamic constructors violate the zero cost abstraction
principle. std::cout and friends must go.

On Thu, Nov 8, 2018, 5:37 AM <mihailnajdenov@gmail.com wrote:

> Wouldn't it be miles better to instead of un-teaching people from
> std::endl and advertise '\n'
> <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#slio50-avoid-endl>
> to have equally attractive alternative?
>
> The point is - '\n' is not in any way beginner friendly as it is not an
> std or build in "command"/object, but some alien symbol (to a new comer)
> like, literally nothing else - it does not even look a single character.
> Even for a non-beginner, some prefer typing std::endl as it is just simple
> letters, not rarely used symbols (double colon, is not rarely used a t all)
>
> Also, if we have a friendly new line alternative we could deprecate endl
> and teach to new-line-and-flush-if-needed.
> Without deprecating it, we might add confusion.
>
>
>
> --
> 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/e17189bf-51be-496d-845a-3707a516a210%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/e17189bf-51be-496d-845a-3707a516a210%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAP3wax_sPnk2FVbZj%2BKPoVcakkBAkGSP6ZcQZUSts52hc2E60g%40mail.gmail.com.

--000000000000d4010b057a6d97f5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>I&#39;d rather just focus on providing a modern repl=
acement for iostreams for C++26, and aim to deprecate iostreams in the futu=
re.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Standard library dyn=
amic constructors violate the zero cost abstraction principle. std::cout an=
d friends must go.</div><div dir=3D"auto"><br><div class=3D"gmail_quote" di=
r=3D"auto"><div dir=3D"ltr">On Thu, Nov 8, 2018, 5:37 AM  &lt;<a href=3D"ma=
ilto:mihailnajdenov@gmail.com">mihailnajdenov@gmail.com</a> wrote:<br></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">Wouldn&#39;t it be miles b=
etter to instead of <a href=3D"https://github.com/isocpp/CppCoreGuidelines/=
blob/master/CppCoreGuidelines.md#slio50-avoid-endl" target=3D"_blank" rel=
=3D"noreferrer">un-teaching people from std::endl and advertise &#39;\n&#39=
;</a> to have equally attractive alternative?<div><br></div><div>The point =
is - &#39;\n&#39; is not in any way beginner friendly as it is not an std o=
r build in &quot;command&quot;/object, but some alien symbol (to a new come=
r) like, literally nothing else - it does not even look a single character.=
</div><div>Even for a non-beginner, some prefer typing std::endl as it is j=
ust simple letters, not rarely used symbols (double colon, is not rarely us=
ed a t all)=C2=A0</div><div><br></div><div>Also, if we have a friendly new =
line alternative we could deprecate endl and teach to new-line-and-flush-if=
-needed.=C2=A0</div><div>Without deprecating it, we might add confusion.=C2=
=A0=C2=A0<br><div><br></div><div><br></div><div><br></div></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" target=3D"_=
blank" rel=3D"noreferrer">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank" rel=3D"noreferrer">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/e17189bf-51be-496d-845a-3707a516a210%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank" =
rel=3D"noreferrer">https://groups.google.com/a/isocpp.org/d/msgid/std-propo=
sals/e17189bf-51be-496d-845a-3707a516a210%40isocpp.org</a>.<br>
</blockquote></div></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/CAP3wax_sPnk2FVbZj%2BKPoVcakkBAkGSP6Z=
cQZUSts52hc2E60g%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAP3wax_sPnk2FV=
bZj%2BKPoVcakkBAkGSP6ZcQZUSts52hc2E60g%40mail.gmail.com</a>.<br />

--000000000000d4010b057a6d97f5--

.
