220 40922 <CAHSYqdYpsmvjRc65vKqPv4f6G6MzSgo1LL_73QDum66mxRB3EQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Hyman Rosen <hyman.rosen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Can we have beginner friendly new line and
 deprecate std::endl?
Date: Thu, 8 Nov 2018 10:47:48 -0500
Lines: 108
Approved: news@gmane.org
Message-ID: <CAHSYqdYpsmvjRc65vKqPv4f6G6MzSgo1LL_73QDum66mxRB3EQ@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="000000000000c2ea8e057a292886"
X-Trace: blaine.gmane.org 1541691956 22846 195.159.176.226 (8 Nov 2018 15:45:56 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 8 Nov 2018 15:45:56 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDKJJPVBQMKRBMNVSHPQKGQENXFYLNY@isocpp.org Thu Nov 08 16:45:52 2018
Return-path: <std-proposals+bncBDKJJPVBQMKRBMNVSHPQKGQENXFYLNY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr1-f72.google.com ([209.85.221.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDKJJPVBQMKRBMNVSHPQKGQENXFYLNY@isocpp.org>)
	id 1gKmVE-0005of-0m
	for gclcip-std-proposals@m.gmane.org; Thu, 08 Nov 2018 16:45:52 +0100
Original-Received: by mail-wr1-f72.google.com with SMTP id a8-v6sf18796342wrr.16
        for <gclcip-std-proposals@m.gmane.org>; Thu, 08 Nov 2018 07:48:02 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1541692082; cv=pass;
        d=google.com; s=arc-20160816;
        b=bAab1f6XLGwuDXLaBohDIpXXu74oo1VsuxuCGkoh1pb6PMCRcgvcCBoXVo1/SWkte+
         /FA+c3mNK40mPjPb5iMuCzZV2Y6lmlsMVDZe1mSZlbsqO4aF69uNcDiEQW+h+IGt6Pf3
         1nIfkExb7K0pSWDXmDP30lF0nVY3U6K6neHSai1yVpbdkdhlVfyuKnDFJXonkMredEMO
         ScuxuR88rc6yE2r+yVYiOxUy05p3GPdMo26oTh6pnn8xL2UtHtodlt+VO7xW5eJ83d/E
         bBTYFgGTdQ0+xQaB5ozJO5UQlkT0RD75HQcbQFH7VNG6ZrIFYwl0XxWIi3EbZb3n6yj8
         eU5A==
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=RO119p3eKxmbEHSWKqp5s2Y62mr1klIo1GN+d42cNo0=;
        b=goKqjeBX+q03R2tED5TBWzZjK/OW0eHypXdQ1XHncyqAjVlwjF7NogS74fWRc36Fb4
         8mHDgEpEgdSF9vZvAlnOaJZ/JQkIA9QVLZ1lE8Jae2l2/vyMgorMayTZQ6GkCueT/C8j
         aOs9yPFRXM8LJf9oR9wmCFuDQ5xSauNhkdmWNqXGQNlD6ZzMYEa+MgxVgDUIP9BMmPnC
         s/Uy3JduexblWcZ1+cg3Djx2JYWUByPfNs7airzLt5SOXTVdC1Zzww6CjFZ/cvMLB59z
         k9+9rpMN98Q+gKgnXWgc8NugC7msJ1A84lCsxUfA71q8W0d90nuVLHRuL2wbD/oPtEsO
         K5AA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=RWVHU7f1;
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@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=RO119p3eKxmbEHSWKqp5s2Y62mr1klIo1GN+d42cNo0=;
        b=WdxFl2D+J07Wk5juAuabnykBgSQtdp89GY8GIOjYytl5fNX7/rAraZPzz6hDUwx8/s
         HR5jqwS204zjymJZQVaRDDU1sdkWwGTrcUpvB8KHhez8eMgza77REl/cdrpXDGYyBObF
         NTysHElDjA/njMrqTi/OiiZ8ZkH5rZdoLs2A0Cv+58JrttMcaRmlIg+YNKpPRHw0DxXm
         q3jLMVqPZg4zGkOj6QMk/fJg1lxIdlFK+cNiQ+rXkBrlEe1+M3GTYx3KsF6qWns3YXZs
         I8/2NBoXfLTfFAE8iWJt/0WWr710iM/+nGqRr2DSp9Jui7X2rbk1pp1WOI2FduRi/nO5
         ImxA==
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=RO119p3eKxmbEHSWKqp5s2Y62mr1klIo1GN+d42cNo0=;
        b=gZ8u189HhjkwLTtbMLJqsGu/mJPtpf0a7YTxaqfudjwUa1QoW8LCeZ7VuCus789+Oe
         NF0nmG2O/Zwoxf1Q9GI4uL3Xdz1iSNq1F4lq5CjBSMTx3/7c7+b9g/Iq6dxA690l8ECx
         duyA+xfR+lF+nkjvLAIa6issJMAITCIKH1d7d1L5GECvIE2p3AULdIMbuSI8K7b4g15i
         HS3KxlsE9okIe1jQdE88fvZPPvf4WKsMK9LCSWzsebb+6SUO+8RYwkMfFzxe5hL/pMnT
         4W3I73XWWlz9Dmj6nATmp0gNbnhEMfn6Ify7nt1iIkSrBCcSRDio6nX4whkByNhdhXMQ
         7eqQ==
X-Gm-Message-State: AGRZ1gK0GMcAOA2STuObi8WAhzSRPI2UsFr/t7Lrshiqxp56aD6hPrtH
	Dl1u0Jh8/tVXYFP+c6qRacDHnQ==
X-Google-Smtp-Source: AJdET5cBcQ7D8Qh7g0n2FsQExNOYE4Wve3T+rf7Hel6ifV9H/2jH2MMe2Jb9KvCaJ4SG3UJS1oXQlA==
X-Received: by 2002:a7b:c018:: with SMTP id c24-v6mr391178wmb.7.1541692082276;
        Thu, 08 Nov 2018 07:48:02 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a1c:8f07:: with SMTP id r7-v6ls309158wmd.22.canary-gmail;
 Thu, 08 Nov 2018 07:48:00 -0800 (PST)
X-Received: by 2002:a1c:cf08:: with SMTP id f8-v6mr1653695wmg.56.1541692080626;
        Thu, 08 Nov 2018 07:48:00 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1541692080; cv=none;
        d=google.com; s=arc-20160816;
        b=p+UKC5l6wj72BEPraqCRBGSABcQTY36ZJlJRchzgA5GzGlJTW1sANjWqja4CzEBnQx
         CFUXATs+NjZMnpXXNnqYSpr4fTgHQ7C9GNdBUxhzhGkw//hwAilv46bvwoGHlB1CvA5l
         jAMewefOiZuKwZXTfec0DJ5JdGdTCXQz+WYGtA3PDv/2wgXW1Z6NHsHWIt/0xl27WWQg
         vvbO3flwHybyJTi+kodv8H0ZW6eF6vDvngbFavr0ludCjIXuNXIJtSu0nYUwvKaJe/7m
         JYdcgA4RCiUf2in2C9WfnJFcBRdTLEs8c/lAhSMsASCYi1+3jIxhwisVUptjXtCf4K9y
         XrGg==
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=4C/LrztatUsU2qDtdXjHMaKejOhXPQfkoMkZ5pN8g+I=;
        b=Jvu3jdC/ZKhwfuQg7AzL182wv06hyDRchW+Jmp45u6sIxxjwSmbQfLKMWw5+sRUelh
         Pm+hxSLsRViwlN2zCtI8wtZnnNcDJO0J3U0pMIHX0vMnPyqdbYkqyZ0TVBVc51z8W5HN
         v2z2roOOcXeKM1+wsYaJWLt07AdagRbJTQjAkHkauOE4TyFRzQ7PoBzXUuNE/BLHi5KS
         OafwBecGeylLA72G/Ltbn6MYZiMrZzViELJ0lR2xiOggSjjbXdwCUl+hTYGbSIvwqsMX
         bO5CNj03aFz69qSrgBovr0b1TSNfbiP3dm0V4FltALIwpue2ek17KQ3NkaP4v+F/p4cZ
         UZrQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=RWVHU7f1;
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@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 h7-v6sor3276823wru.33.2018.11.08.07.48.00
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Thu, 08 Nov 2018 07:48:00 -0800 (PST)
Received-SPF: pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:adf:b593:: with SMTP id c19-v6mr4846815wre.223.1541692079662;
 Thu, 08 Nov 2018 07:47:59 -0800 (PST)
In-Reply-To: <e17189bf-51be-496d-845a-3707a516a210@isocpp.org>
X-Original-Sender: hyman.rosen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=RWVHU7f1;       spf=pass
 (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=hyman.rosen@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:40922
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40922>

--000000000000c2ea8e057a292886
Content-Type: text/plain; charset="UTF-8"

'\n' has been the way to write newlines in C for half a century.
It's also the way to do it in C++, Java, Perl, Python, and other languages.
We don't need a beginner-friendly way to specify newlines,
because it's as easy to tell the beginners '\n' as to tell them anything
else.

On Thu, Nov 8, 2018 at 8: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/CAHSYqdYpsmvjRc65vKqPv4f6G6MzSgo1LL_73QDum66mxRB3EQ%40mail.gmail.com.

--000000000000c2ea8e057a292886
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">&#39;\n&#39; has been the way to write newlines in C for h=
alf a century.<br>It&#39;s also the way to do it in C++, Java, Perl, Python=
, and other languages.<br>We don&#39;t need a beginner-friendly way to spec=
ify newlines,<div>because it&#39;s as easy to tell the beginners &#39;\n&#3=
9; as to tell them anything else.</div></div><br><div class=3D"gmail_quote"=
><div dir=3D"ltr">On Thu, Nov 8, 2018 at 8:37 AM &lt;<a href=3D"mailto:miha=
ilnajdenov@gmail.com">mihailnajdenov@gmail.com</a>&gt; wrote:<br></div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex"><div dir=3D"ltr">Wouldn&#39;t it be miles better=
 to instead of <a href=3D"https://github.com/isocpp/CppCoreGuidelines/blob/=
master/CppCoreGuidelines.md#slio50-avoid-endl" target=3D"_blank">un-teachin=
g people from std::endl and advertise &#39;\n&#39;</a> to have equally attr=
active alternative?<div><br></div><div>The point is - &#39;\n&#39; is not i=
n any way beginner friendly as it is not an std or build in &quot;command&q=
uot;/object, but some alien symbol (to a new comer) 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 just simple letters, not ra=
rely used symbols (double colon, is not rarely used a t all)=C2=A0</div><di=
v><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>W=
ithout deprecating it, we might add confusion.=C2=A0=C2=A0<br><div><br></di=
v><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">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">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">=
https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/e17189bf-51be-=
496d-845a-3707a516a210%40isocpp.org</a>.<br>
</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/CAHSYqdYpsmvjRc65vKqPv4f6G6MzSgo1LL_7=
3QDum66mxRB3EQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">htt=
ps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAHSYqdYpsmvjRc65=
vKqPv4f6G6MzSgo1LL_73QDum66mxRB3EQ%40mail.gmail.com</a>.<br />

--000000000000c2ea8e057a292886--

.
