220 40997 <59b3971f-53bf-e0c3-f9f5-3d7a82646852@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Can we have beginner friendly new line and
 deprecate std::endl?
Date: Tue, 13 Nov 2018 13:16:20 -0500
Lines: 43
Approved: news@gmane.org
Message-ID: <59b3971f-53bf-e0c3-f9f5-3d7a82646852@gmail.com>
References: <e17189bf-51be-496d-845a-3707a516a210@isocpp.org>
 <CAMmfjbOkdN63EON+hrCJWj94n48vtVvMfUjzeau5KmPWSpwkow@mail.gmail.com>
 <CAHSYqdYYZjeHHbRZ5bcHLYVsWfspwCeQ8oxEDRbuJ8dqAtsX5A@mail.gmail.com>
 <AB167E1A-FA59-4B72-A9C2-1624D1B56614@hsr.ch>
 <b49f4c85-816b-4b35-851d-407061a8ef9f@isocpp.org>
 <CAMmfjbOjpJvBWEke1z0XXnHXhjtEO_otNN5-jayGPwe3RHO0Rw@mail.gmail.com>
 <7da1f33f-c2c1-482f-8fc2-c23a9767a5ec@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1542132860 30671 195.159.176.226 (13 Nov 2018 18:14:20 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 13 Nov 2018 18:14:20 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
To: std-proposals@isocpp.org, mihailnajdenov@gmail.com
Original-X-From: std-proposals+bncBC37LBFWUIFBB55JVTPQKGQEM4FXBRY@isocpp.org Tue Nov 13 19:14:16 2018
Return-path: <std-proposals+bncBC37LBFWUIFBB55JVTPQKGQEM4FXBRY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk1-f200.google.com ([209.85.222.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBB55JVTPQKGQEM4FXBRY@isocpp.org>)
	id 1gMdCX-0007pa-Us
	for gclcip-std-proposals@m.gmane.org; Tue, 13 Nov 2018 19:14:14 +0100
Original-Received: by mail-qk1-f200.google.com with SMTP id s70sf32652308qks.4
        for <gclcip-std-proposals@m.gmane.org>; Tue, 13 Nov 2018 10:16:24 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1542132984; cv=pass;
        d=google.com; s=arc-20160816;
        b=lKhya04WOFHMQA4dTWEVKM8u5aWTDT3CbluTjIhIYMFwy0I3d1s3UfqAIZVsLhN2wP
         JY9I4SCqP/fKC/t6dT1Eat+RyNwePX1NmEVSXCdjFDY7G57l0GwLTHlbefE+ObzUH7l1
         z2jGT6YwvDGFBo6pP+EZUKd87NUloSy0rZ/juggO2kdD3ybLc913wC/HbOG5Bo6Eaozq
         /6BHQ1hf6kmvGiQHSs64o6Dz6Rdd55V7vDbVQGIfjPNyQvdEBkzpetprUK9uSiRZd2f4
         X5KpS4QHD2CeM0kApC23qFis+2uWJLUyGByWITVdp7I6m06YAtBggJiTOPbj39UEKkBf
         VBlQ==
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:content-language
         :in-reply-to:mime-version:user-agent:date:message-id:openpgp:from
         :references:to:subject:dkim-signature;
        bh=TqQA4IN+VMKKrib7tNX/TJj52hTpQF+DzUF3uQN1xHc=;
        b=069pTy6jw/FU4TYOSnSNPrKCfmx3N/lekDjKgRlnkRxpzMr1VGCjg1NX+2IbEoGfWp
         A6tfB3J9BwzfnyD7zRojtz4qsatS+DByOpjAHbZNcf2a+mf4ZiYW6E9FFfsRqg6lD0ii
         qXgu3EnsL/aoacnbvtZlIbyJRzycQlrV2N3dWuennw2VwscrV0IagYnDxjm4AmOGK2V3
         2vxidWL7qxpPIoGDGrybviuX8xBInXpWbv2UN/Gp59Mp3XVFfMu5SUwzbJIM2stuT+i+
         SYcZrhLtY6Qepbcsua9nAuyw+1HdGQt4T20PFdLVhLYIVkCAfei4Hn1geydn/iD6BOFE
         yiXQ==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=GwGv57XS;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mwoehlke.floss@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=subject:to:references:from:openpgp:message-id:date:user-agent
         :mime-version:in-reply-to:content-language: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=TqQA4IN+VMKKrib7tNX/TJj52hTpQF+DzUF3uQN1xHc=;
        b=cEFnWH5NgK13I8H6w5Ra8OiI+I5lrN0V4y38hGo5xIUJQytoTDTEeGYqlTw91Ukw6M
         Jzk9oR4xgDcNa5MN4Rn2MBh7Nt3n+l2J+HtVDsha1MXScF4VJWE5SK/Ez9C2tK2rQsLh
         Jz2NoOam7hc3bVM+jkcw9a7ft2kZigAMmP7GNky4BDLMtc5fdkyauqO9uiSuxISJlr31
         +5e7uynsE8SKksvB44Xu9MGUbwYI1jhdnCsGculd5neZJBbMjX06UqiwMotuMc0lqBoz
         COJxYzSjJDWvvt0U4V9N7tG0RsbZP8HlrqsU3aG28RCy1sU+DeF2pRa/iXAhssscGauW
         0A6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:openpgp:message-id
         :date:user-agent:mime-version:in-reply-to:content-language
         :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=TqQA4IN+VMKKrib7tNX/TJj52hTpQF+DzUF3uQN1xHc=;
        b=SHj3QX8PWenw0cBLAKqF8FnUsfMmH9DF32AXANVPHHM4x3949tIJd7iSEPsyV19h23
         c7eF5CVjFnosc9/duQQJTyn01RyqParxWGbm6DqjuI+XfzRMgyQzes9d9pUUld4QvFLv
         e9IhBRJhjgCTcxWsQv2dc4QTzyBCdAPaild4ZKcJ3rcgqjAW9tfxJ4Bb7x+fJ8lz6f/M
         v5Sjj1XNlJ1beM1q8JoLXDuuc3hKIhwAbaKao7i7/N81HRDr+akZjIAf+QU8IQJCmAGK
         uZy8pUWc2kNs9UBp5efWg8SUfEGS3TUGtRYv65ciDBWfBGyCiWM4g3s3wbyalSRy+STA
   
X-Gm-Message-State: AGRZ1gIoaDhhXvB4YOI06BTiGQDUJXJLXZEASYIz/vluSHfkOI/Jz0E1
	DZLhRGhfIB32bAcwu9NETXvQxw==
X-Google-Smtp-Source: AJdET5drSjAHiiIdxac7Iek1XlB+GLAe5TX6TjdcD/1gxUIN7y+L4BA1caLRL1ChiKsANw+WpE051A==
X-Received: by 2002:a0c:9901:: with SMTP id h1mr4457318qvd.14.1542132984303;
        Tue, 13 Nov 2018 10:16:24 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:aed:38e1:: with SMTP id k88-v6ls5708305qte.4.gmail; Tue, 13
 Nov 2018 10:16:23 -0800 (PST)
X-Received: by 2002:aed:3442:: with SMTP id w60mr6178384qtd.339.1542132983205;
        Tue, 13 Nov 2018 10:16:23 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1542132983; cv=none;
        d=google.com; s=arc-20160816;
        b=uym5nQ59jCoVg5RK3mgmqXso5W/58oXuzS10fh/gfugNdubxQ2TSVfb1CpeNHJqssf
         DDprQQIn2Z/2skhyGePc8yl3okie5Q9wqld1D/9kfGj+3HAabt4haI8cvUjPdvKZQsbs
         rpRoxsdppwUMVb9+94nB/wsttQqIO1MbfCWbTZvQ0ybz+CxN69EcrLYe5ZH0D8nbmUWJ
         cqM5NUrsKi0P96Btuj48Wq5f/Ndq9PW7i/mKdgmagWSWxnOL8I/8kD45cpHP44/ie/yb
         ntgIyxIz5yHnc7nAjGHA8CIIKvTqHpNjzAmHIGP6bssjxWzHxwtQibocmPtmYTsBvS/f
         lckg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:content-language:in-reply-to:mime-version
         :user-agent:date:message-id:openpgp:from:references:to:subject
         :dkim-signature;
        bh=IIEsZU/oONtdOAM6TdZhBJMrZAmMXnosaGMagoEk86g=;
        b=r8CXpNyJiiYqgXC200ujcFvawGnHP4zlDekmlR49Y/mikXUpPztnzCWdNOmH+NUTFL
         pGL/NZJmw+Ugo0ENvqISrWvjEA/okr0n+M+s3S0wsOWFwPsn/pv/JfeGwv7Q9hZkHBiD
         PL0iqCpg7JV7cdx7yzqxOkvq1/rn/5kUcggG4hc19Di7kITbCbO1rQk0CLK/8NF/3SCp
         rQ8hN3jvmWhwcnTloNmKw/c2Z257o+V1tL3NcnBjIAlpSkgJ4dmWB3FlqNHUSCGibpqn
         XtK0txvuQ1fFV6hfQCAx0LP7jfd5UeiVP+TLEhHfqZesg510bVICNxIq1pNA4pZPQ0g3
         3paA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=GwGv57XS;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mwoehlke.floss@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65])
        by mx.google.com with SMTPS id j131sor11137599qke.25.2018.11.13.10.16.23
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Tue, 13 Nov 2018 10:16:23 -0800 (PST)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65;
X-Received: by 2002:a37:a4cf:: with SMTP id n198mr6022457qke.101.1542132982958;
        Tue, 13 Nov 2018 10:16:22 -0800 (PST)
Original-Received: from gryphon.kitware.com (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id s9sm14646810qta.35.2018.11.13.10.16.22
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 13 Nov 2018 10:16:22 -0800 (PST)
Openpgp: preference=signencrypt
In-Reply-To: <7da1f33f-c2c1-482f-8fc2-c23a9767a5ec@isocpp.org>
Content-Language: en-US
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=GwGv57XS;       spf=pass
 (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.65 as
 permitted sender) smtp.mailfrom=mwoehlke.floss@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:40997
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40997>

On 10/11/2018 10.24, mihailnajdenov@gmail.com wrote:
> There is some sort of miscommunication. 
> The fact there no C++ way to insert a new line (only a UNIX special 
> character way) is what I state an issue, 
> considering the rest of the API 

Huh?

'\n' is not "a UNIX special character". It is an escape sequence that
refers to the NEWLINE character.

Escape sequences are important. Not only should most programmers be
familiar with at least '\n', but also '\'', '\"' and of course '\\'.
Lacking this familiarity is just a recipe for getting into trouble when
needing to have these characters in a string.

As for NEWLINE, it is not UNIX specific. It is true that "UNIX" the the
line ending standard that uses '\n' by itself to mark the ends of lines
of files on disk, but it is *also* the standard for files being
processed in "text" mode. *On ALL platforms*. In fact, it is more
possible to be ignorant of the existence of other line ending
conventions than to be ignorant that at a code level, '\n' is *the*
correct way to end lines.

> But C++ streams are different, having to spell out a special character is 
> odd and unintuitive for a beginner and a design deficiency in general.  

So how do you print quote characters? Or backslashes? Or *any*
"non-printable" character?

Trying to avoid teaching escaped characters, which exist in virtually
EVERY computer language (not just "programming" languages, but markup
languages as well) is just dumb.

-- 
Matthew

-- 
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/59b3971f-53bf-e0c3-f9f5-3d7a82646852%40gmail.com.

.
