220 37262 <CA+gtASx6wfn9RMpD3_dBAfT7mWYnaXM5rDcmG1QwWch+OnnTdg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Marius Bancila <marius.bancila@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: More compact #include statement.
Date: Thu, 8 Mar 2018 15:44:45 +0200
Lines: 155
Approved: news@gmane.org
Message-ID: <CA+gtASx6wfn9RMpD3_dBAfT7mWYnaXM5rDcmG1QwWch+OnnTdg@mail.gmail.com>
References: <bcdae121-4ec3-4547-9ee9-7668cc7e8e59@isocpp.org>
 <7e2d9e7c-fc9b-4913-98bb-007ba5ae8806@isocpp.org> <CA+gtASxnYc3T-LjLXvuJ361OmstDo2Wn+0hB3-_8rJNRuomyjw@mail.gmail.com>
 <41771dd6-2803-b561-4349-f71f75127415@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="94eb2c187b7823e3860566e6e22d"
X-Trace: blaine.gmane.org 1520516587 20324 195.159.176.226 (8 Mar 2018 13:43:07 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 8 Mar 2018 13:43:07 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDKKRWPFRYJBBYX4QTKQKGQEKX2PI6Q@isocpp.org Thu Mar 08 14:43:03 2018
Return-path: <std-proposals+bncBDKKRWPFRYJBBYX4QTKQKGQEKX2PI6Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f199.google.com ([209.85.223.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDKKRWPFRYJBBYX4QTKQKGQEKX2PI6Q@isocpp.org>)
	id 1etvoz-000585-D8
	for gclcip-std-proposals@m.gmane.org; Thu, 08 Mar 2018 14:43:01 +0100
Original-Received: by mail-io0-f199.google.com with SMTP id g2sf5478316ioj.18
        for <gclcip-std-proposals@m.gmane.org>; Thu, 08 Mar 2018 05:45:08 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1520516708; cv=pass;
        d=google.com; s=arc-20160816;
        b=BtyG2an9xsg903OSrBG9NPc/HHDRTMcDm5kt6FkAQE95eou6XS1lhERtlI35deE2hA
         CE3HO/VpH3PXT5QWoL4jy/wI7QTJDpUPc0s8gElYVKUQLqd4pmfJ9uYxOLS+jz+Ysoy/
         PKxie7AcbVYFlHps+Lo1eJVTD+57gMwMN+fEv0eEASonhGNjQ77Qr0gSu8wsQcJBZP2K
         NL0rSoLYIVKGJSTSsRs/oaMA4X6baDm/eNzzOHM1in9bBnEP4+4QvPPxy+l33EjjPMrm
         DbhEZipvQLupnj9e2bbbFhLDENZgA9aeWNs+78hyEDkZFbU4Ihch4yxVBA+1yso9HePy
         T8sA==
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:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=cKKEF6xMuGoTZi2lWst+4Eh5WXOIeqAmyxeoueXR3mA=;
        b=yNlyq9OXHNHN9czUXtdNddtWwnLh7/b5AZ2UMlT/IxCyAV2duGFJAd1DLiXmperEly
         mSPgbbHiOZbK18JgjfSxRXXU7HGRdrmKs5wqmBl+E4fAGrt1t4jQ/rTMD+z+PFtw2H//
         zFk5ixvgKuzthPRa2iAvUCsyi1l+pGqqAgIe4Phecy8XmkghNK8TKf0dBfOi2yGIqWci
         9CbAXKfKn5EjXIRuAK6rJHRSam7/JHSuAKoulMQq9O4ZceoAwAwvIRU+6x/6t1Pmra4/
         YHxcxDPWqF0m7DAnFzL62bLa56SB/OW4ENpH/t1T6TBctQgM7+3o+41KBJ01O5ax4S4D
         m9BQ==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=olwTcxSU;
       spf=pass (google.com: domain of marius.bancila@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=marius.bancila@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:in-reply-to:references: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=cKKEF6xMuGoTZi2lWst+4Eh5WXOIeqAmyxeoueXR3mA=;
        b=QhC2GuR6mZN/RcNrmgkpQr74QI5xyPnC1ledkX/7NrG/MS1WjGRBpPfyIWLmVWjrzK
         Mpt45BkC+Q7CmG13G1IEmfl17wCxUKb+4hcqb3yTGdXnprDEV6NgftTuayQf2nSxH1cr
         NKoQG1l04yo2v/9ppd8zJ5wJwAYAiiJicVS+7npE1WJXZw+JLsvUVJ6xV4/PUYK2mz4x
         cBEkboPKhKgQqoPaOGvnEMvObvQH+3Gsome3sNZpX1cS9E+ep0aDHeAZwFoaxD2vM3aa
         cPsvYGlzLJgW56so3plbXpx9yDNO7ucAipBzNNyEcNhglAZp+JesSBqCXlUqqeJ0HmR9
         EDfw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references: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=cKKEF6xMuGoTZi2lWst+4Eh5WXOIeqAmyxeoueXR3mA=;
        b=mOvR6X6gg+MywNiehivls0/KmEz61o97Sdmq/JH5MzcyL1AtEKvW/GrlhU3HNLk7im
         HgzOj6bx9oH3MXf/aldbCal8vaxjdcNi+cSmhP6dqcxQIkiQsyQFVh1UUC1Rdy8aoaql
         6JE5gjwsRbhpixrzGOSPcgrLAFsJEL+jzIggHsuH6uuBLQNpfoqjqdIYX0kkXoxgTyU+
         7euTratLjCkk0xzA5Le+f1p39fzycdFO5FepmmwHQGdg3DlT7CF5HPu2umcd91JDHtj4
         TlTyUL98Lce+a8Jc+t9ywN2bo12GtTrvRYIM/eUXYjaalSwoUKrx1jSMSr0zlMU+nCp8
         uoCA==
X-Gm-Message-State: AElRT7FaiVTA46CX9IAo9EEZAFR6cch+O567+81UmuBmbf5q7GQgrnQs
	2Vr060BOaCF79YPimX+I417Whg==
X-Google-Smtp-Source: AG47ELujxDkBdyLh6kYjHU7aDieAMwbMLBKmTkee3BrulPYv/RkLMIoWeRSpxZ55CH3NyRnxSNVoHg==
X-Received: by 10.36.69.165 with SMTP id c37mr17105602itd.20.1520516707973;
        Thu, 08 Mar 2018 05:45:07 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.164.230 with SMTP id d99ls951327ioj.18.gmail; Thu, 08 Mar
 2018 05:45:06 -0800 (PST)
X-Received: by 10.107.24.194 with SMTP id 185mr32003146ioy.157.1520516706565;
        Thu, 08 Mar 2018 05:45:06 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1520516706; cv=none;
        d=google.com; s=arc-20160816;
        b=ZVMJdV9GRULGHmOfI719aTtMnKB7bWc5fuDkxhWECKoidntnfz0To1aM5czVAiEMIn
         a16J4pr9eq4mupihk9AJ45aGjuUNR9I4zLlxHxxOjJE63KYGruptoipub8jmQgY17fjQ
         RkT1aDquWxcEKU443EOb3trrWYvD8j06wM1K01vXvrJGEBAuYWI5GJauiHo3JylAKxTQ
         I3y0uW4/8TIv/z1T8CwXLo3fFsX900zMQajfDrPZ/zZcyfxvzb69ANayMZYV7raarZpS
         QUrDLFXbiJuBV/daSXOBpWRrr80Yn6cPWVrPpILB02l0pPJkv6LGAUh0wYMc4EIwxKYG
         ndTQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=AUQegNXpY+EGJpse+Lt6hfnUye4AWMSElwR3iPgiIKs=;
        b=UFEFZl4hDWFFxGV4HQY9+pHCluvcl+/qBgryJ6nspRAhLVuekCHxQG9KrKvzhs9yRC
         krIfk14nNu5tGPrd6e+Sb2ormDf2uPISWSdDsZfD9acKiwF2dGTu/3faIwHmQf7uL7WG
         M5xjie8eB5PQkI29eYmjvom0yM2BTsYL27kq2R4FOMqyDbKBKns80GIyIcYn/6qXNjyl
         3y5wGuh/6ZdaMyD+r5cRTfiRsZW//2ynMksQYe64fSWuPOVSlpRP/3YnNVrHV+KQPM3f
         6dG92/KSDakxCVn76eXj0s7YJJHmXCeSbwTRBRzyk3qIxEeMkC2mQ167SK01q3YmhMU7
         JWVw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=olwTcxSU;
       spf=pass (google.com: domain of marius.bancila@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=marius.bancila@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 n2sor11624275iob.14.2018.03.08.05.45.06
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Thu, 08 Mar 2018 05:45:06 -0800 (PST)
Received-SPF: pass (google.com: domain of marius.bancila@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.107.205.134 with SMTP id d128mr10963177iog.35.1520516706065;
 Thu, 08 Mar 2018 05:45:06 -0800 (PST)
Original-Received: by 10.79.214.80 with HTTP; Thu, 8 Mar 2018 05:44:45 -0800 (PST)
In-Reply-To: <41771dd6-2803-b561-4349-f71f75127415@gmail.com>
X-Original-Sender: marius.bancila@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=olwTcxSU;       spf=pass
 (google.com: domain of marius.bancila@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=marius.bancila@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:37262
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37262>

--94eb2c187b7823e3860566e6e22d
Content-Type: text/plain; charset="UTF-8"

>
> I'm not sure what "this" you mean here. IMO, there's nothing to do, all
> headers should stay one per line.


Sorry about the confusion. I meant that editors should be able to
collapse/fold regions of #include directives in order to keep them out of
sight so you can focus on the code. Yes, I agree, headers should stay one
per line. :)


On Thu, Mar 8, 2018 at 11:03 AM, Andrey Semashev <andrey.semashev@gmail.com>
wrote:

> On 03/08/18 09:44, Marius Bancila wrote:
>
>> I have doubts that multiple filenames on the same line would increase
>> readability. Finding a header file by scanning the includes vertically is
>> much easier than doing that horizontally. Here is an example:
>>
>> #include <ios> <iostream> <istream> <fstream> <ostream> <streambuf>
>> <iomanip>
>> #include <locale>
>> #include <string> <string_view>
>> #include <map> <vector> <list> <queue> <set> <array>
>> #include <utility> <algorithm> <functional> <limits>
>> #include <mutex> <condition_variable> <atomic>
>> #include <memory>
>>
>> I don't find it easier to find headers here, and this is a simple example
>> without app or system specific headers. In real life you can get into much
>> more complicated cases, as you mentioned yourself.
>>
>
> +1, looking through the list of headers vertically is much easier (at
> least for me).
>
> IMO this is something editors should be able to do. The IDE I use, Visual
>> Studio, does that pretty well.
>>
>
> I'm not sure what "this" you mean here. IMO, there's nothing to do, all
> headers should stay one per line.
>
> --
> 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/is
> ocpp.org/d/msgid/std-proposals/41771dd6-2803-b561-4349-
> f71f75127415%40gmail.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/CA%2BgtASx6wfn9RMpD3_dBAfT7mWYnaXM5rDcmG1QwWch%2BOnnTdg%40mail.gmail.com.

--94eb2c187b7823e3860566e6e22d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span st=
yle=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;fon=
t-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-=
weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tran=
sform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255=
,255);text-decoration-style:initial;text-decoration-color:initial;float:non=
e;display:inline">I&#39;m not sure what &quot;this&quot; you mean here. IMO=
, there&#39;s nothing to do, all headers should stay one per line.</span>

</blockquote><div><br></div><div>Sorry about the confusion. I meant that ed=
itors should be able to collapse/fold regions of #include directives in ord=
er to keep them out of sight so you can focus on the code. Yes, I agree, he=
aders should stay one per line. :)</div><br><div class=3D"gmail_extra"><br>=
<div class=3D"gmail_quote">On Thu, Mar 8, 2018 at 11:03 AM, Andrey Semashev=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:andrey.semashev@gmail.com" target=
=3D"_blank">andrey.semashev@gmail.com</a>&gt;</span> wrote:<br><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid=
;padding-left:1ex"><span class=3D"">On 03/08/18 09:44, Marius Bancila wrote=
:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
I have doubts that multiple filenames on the same line would increase reada=
bility. Finding a header file by scanning the includes vertically is much e=
asier than doing that horizontally. Here is an example:<br>
<br>
#include &lt;ios&gt; &lt;iostream&gt; &lt;istream&gt; &lt;fstream&gt; &lt;o=
stream&gt; &lt;streambuf&gt; &lt;iomanip&gt;<br>
#include &lt;locale&gt;<br>
#include &lt;string&gt; &lt;string_view&gt;<br>
#include &lt;map&gt; &lt;vector&gt; &lt;list&gt; &lt;queue&gt; &lt;set&gt; =
&lt;array&gt;<br>
#include &lt;utility&gt; &lt;algorithm&gt; &lt;functional&gt; &lt;limits&gt=
;<br>
#include &lt;mutex&gt; &lt;condition_variable&gt; &lt;atomic&gt;<br>
#include &lt;memory&gt;<br>
<br>
I don&#39;t find it easier to find headers here, and this is a simple examp=
le without app or system specific headers. In real life you can get into mu=
ch more complicated cases, as you mentioned yourself.<br>
</blockquote>
<br></span>
+1, looking through the list of headers vertically is much easier (at least=
 for me).<span class=3D""><br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
IMO this is something editors should be able to do. The IDE I use, Visual S=
tudio, does that pretty well.<br>
</blockquote>
<br></span>
I&#39;m not sure what &quot;this&quot; you mean here. IMO, there&#39;s noth=
ing to do, all headers should stay one per line.<span class=3D""><br>
<br>
-- <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%2Bunsubscribe@isocpp.org" target=3D=
"_blank">std-proposals+unsubscribe@isoc<wbr>pp.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></span>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/41771dd6-2803-b561-4349-f71f75127415%=
40gmail.com" rel=3D"noreferrer" target=3D"_blank">https://groups.google.com=
/a/is<wbr>ocpp.org/d/msgid/std-proposals<wbr>/41771dd6-2803-b561-4349-<wbr>=
f71f75127415%40gmail.com</a>.<br>
</blockquote></div><br></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/CA%2BgtASx6wfn9RMpD3_dBAfT7mWYnaXM5rD=
cmG1QwWch%2BOnnTdg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CA%2BgtASx6wf=
n9RMpD3_dBAfT7mWYnaXM5rDcmG1QwWch%2BOnnTdg%40mail.gmail.com</a>.<br />

--94eb2c187b7823e3860566e6e22d--

.
