220 37300 <p83nu3$ifd$1@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Larry Evans <cppljevans@suddenlink.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: More compact #include statement.
Date: Sun, 11 Mar 2018 13:15:11 -0500
Lines: 75
Approved: news@gmane.org
Message-ID: <p83nu3$ifd$1@blaine.gmane.org>
References: <bcdae121-4ec3-4547-9ee9-7668cc7e8e59@isocpp.org>
 <32ae2dd9-e59e-4c91-bdb2-308ede3f731a@isocpp.org>
 <p838m8$cae$1@blaine.gmane.org>
 <3de2a91c-7917-457a-bfc6-7f79e2b487dd@isocpp.org>
 <CAFQaeCC159LTJbbRsXqYeuGpTgS8kxfW1nZMZ97J5yLveqgumw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format=flowed
X-Trace: blaine.gmane.org 1520788244 20131 195.159.176.226 (11 Mar 2018 17:10:44 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 11 Mar 2018 17:10:44 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.6.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDAYTI72VMGRBDOHSXKQKGQENSUOSXY@isocpp.org Sun Mar 11 18:10:40 2018
Return-path: <std-proposals+bncBDAYTI72VMGRBDOHSXKQKGQENSUOSXY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f69.google.com ([209.85.215.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDAYTI72VMGRBDOHSXKQKGQENSUOSXY@isocpp.org>)
	id 1ev4Ua-00059b-L8
	for gclcip-std-proposals@m.gmane.org; Sun, 11 Mar 2018 18:10:40 +0100
Original-Received: by mail-lf0-f69.google.com with SMTP id f194-v6sf4448885lff.6
        for <gclcip-std-proposals@m.gmane.org>; Sun, 11 Mar 2018 10:12:47 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1520788367; cv=pass;
        d=google.com; s=arc-20160816;
        b=l0ScVtCQ0xN73nQuCYNRlvL9YvyDMm3GC6PF7j5V79rDCOnKeY9KLwIv0W4NyY1EP8
         t8IGucGhPYaDC7fvmKc7C6YvjcHEc9MJ2l9eT3EeL2kHowjJdkURjIC33Z+DJxWaXlfL
         yf6wmcciqS4YuNlkSJryD04NoxI2Qk+LbhXLdJJ6OhOJ/ACMe69/SR4em2qxOY1ZP78X
         bhiTgWyewUwTXuALsgMO3Rf97C5jBDRuA2tZqgAj7Ghl1w1Ql8y617HirPWSnTFEyWyV
         4u6FQgglOqr9jY/lDyBTC18aN+0Y8lM65OZQuPdOkJszC1fBzj0IhWJIeLtww9Q0RdcE
         W2Hg==
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:user-agent:mime-version:references:message-id:lines
         :date:subject:from:to:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=cqqBKjkqtlQ+S0t7freYp6HU+y4Db1sdmMb7tFftZiM=;
        b=J0e23G6wHjTTtOFuZMWMO8y9vssZOh4AyhiUp0cvptQayaKiaWddtmi4vXoOKaP0/L
         pSkkUxrt9mSPNF730MIZsf0DSj6P0Nc+wY0YR6o0diS0hO8AXCYwVY2n+B/78fQzEE3C
         dkOHrEeclbN9iztKmUbdnBl3gYFY/oLIDv3eM5Mooq4nBWUrkdMW/Pi1tBijGetumAHQ
         ildDM+HYu3hl0rqjWhnBfyucR4MkmsLjHhDUpMUtwjvDMBc5myuMtu+4Z4dCTjSfNf+m
         /N7j7/jZ4NYzf3BHBbjm+7/7RyDt9KggbDbwuKsJCM3iXl1UL49kP6C6hRHNk8nDSqu9
         p+/Q 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :user-agent: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=cqqBKjkqtlQ+S0t7freYp6HU+y4Db1sdmMb7tFftZiM=;
        b=xwgamk8KiJ/ahdsOhC7azIMw+l8JcrxvkM9rNlVDPm8u8xmSXoc0pvkFEpzdFHaAkD
         hOOq+5jNVEEDL7raxGILbhUepZJg9jx4lepuO/BY3uPVxtLTbiZkwcM517kT6/lq7jk4
         SynaVKQk7UYB9Thgm36h7EqVz2Q46rk8xJjp0aWllpASRERrOIUyeCwssx2Gh/5M8Bts
         SFvFhG1h4vYbdvO6gI8p96ObWOR6Wo9pV6NnGYghevd0hHknowrnSnIgrsrXNux4fqeX
         eIN87SIaGYYM4s3BCTLPLyD+UI2zpsOI6iy7lOnHhWstIm4DFQWVTbuoHcRIe2bbNLwc
         au7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:user-agent: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=cqqBKjkqtlQ+S0t7freYp6HU+y4Db1sdmMb7tFftZiM=;
        b=K8LtMMX9T9EvSIqAXrv6BSj7So6DDl5CudImxWAvOsAAvfB9ltScLq/P3uFuVLKT1q
         5kz91ak00VstHA1BIs8zrsalYu/6LkcuwHTdHGbRkXkJfkTm1JOePmynw/8qtGSo2rVA
         7tYA8Lz9xSn4ADPW2iw4t9F3xlt/w0tWNkeSr5y9lOlP0Q63gUVKyIloookvWmd05GdW
         l4SOxAkoziRZHgPHjUh9hSZJAYzl370tETMfFhgCo3GzNqoQ+aICall6h45UJ/PJOWeJ
         gb6IyGqoRmfsk+0gDNhs0ZSdv0BoUXPgVyHIT0kIVGbwY+K8gJldG8yt/WKPFa1fI2cO
     
X-Gm-Message-State: AElRT7G7VV2X3+ph1WspkhXJJBFD4VG+58RY9fxRHbXMg85MUlDN24Oy
	t1ZH5OCMwof43FhHuI3+lxo=
X-Google-Smtp-Source: AG47ELs1yFD05OyFvkYy8p5zzsuBDm/ZFjRQJLipLJyYX1nEotngsLx7lAZmmk4pMpIbxpsr2dWxIg==
X-Received: by 2002:a19:2008:: with SMTP id g8-v6mr312960lfg.13.1520788367663;
        Sun, 11 Mar 2018 10:12:47 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.46.25.151 with SMTP id 23ls1172993ljz.5.gmail; Sun, 11 Mar
 2018 10:12:45 -0700 (PDT)
X-Received: by 10.46.5.3 with SMTP id 3mr3191606ljf.135.1520788365196;
        Sun, 11 Mar 2018 10:12:45 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1520788365; cv=none;
        d=google.com; s=arc-20160816;
        b=T5r9wfKHszTLiv+9zRnJmgSGD+2KwkECeejugoYSI19hi2dyu94g7NowLQgBOua6kj
         ZTxqts0Kqc/XrNa4QPblXTTom5lC5EXXnhxCVkzMkx7yCUhoNBtXnFxwXevBUimTbx4/
         A291JTWqhfC09DcJ5CoAje2re6+6yRVCnkFCc66hoYbuGGsMlXwDSe8VH2oXv077K32V
         Hdynmc+aUDTA+L6tn8C+pp9lulUedyefcZor1tmR4qvrNkeTlbLY8N+8aap23WV/s+Gm
         hxQFgRlwNrrX3AKPPl20YESZSn/zPHUMk4ZjmDgpuaXw+UVNo1SsRj/yZcALGU5BMLZi
         sqzQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-language:in-reply-to:user-agent:content-transfer-encoding
         :mime-version:references:message-id:lines:date:subject:from:to
         :arc-authentication-results;
        bh=SHsHaNfxIaUfCuxBdEHupOIWlkMkMiceQLwjapCoP0g=;
        b=EiODtrvzIN6IrxGvdNga+2xmd4/M61y6v5iEcmr/pc+R9h4eMilTfyDGc0ooOaKaW0
         7IfYLcmiALfsk8296GtJPzFEtTucZi2QWcYHlDyUea/SPho38f/8qfm9a+b2a6Z0zSNf
         8VImcqVfiZwmU3Ugq2CQkmMT8Zv6qUGfQfUH/6RxrfcFo9dCsmQWKwpZYfqkUJNqJU8S
         Z3rp/EiEyxP5/VBCK+TGJq76ysBXmwKowz+oHfKgWhuOQO2hpSMbewQ/hRTrp8SuybyF
         SBI+4m1vtxPDnigYasf7ysOeD6ySWD4QcIJaaShAercM0F++3kDdEn+R0P5ebZLE5j2g
         Atqg==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id a195-v6si2217790lfa.225.2018.03.11.10.12.44
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 11 Mar 2018 10:12:44 -0700 (PDT)
Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) client-ip=195.159.176.226;
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1ev4UV-00054N-0h
	for std-proposals@isocpp.org; Sun, 11 Mar 2018 18:10:35 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 68
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <CAFQaeCC159LTJbbRsXqYeuGpTgS8kxfW1nZMZ97J5yLveqgumw@mail.gmail.com>
Content-Language: en-US
X-Original-Sender: cppljevans@suddenlink.net
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 195.159.176.226 is neither permitted nor denied by best guess
 record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
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:37300
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37300>

On 03/11/2018 11:40 AM, j c wrote:
> On Sunday, March 11, 2018, Todd Fleming <tbfleming@gmail.com> wrote:
> 
>>
>> On Sunday, March 11, 2018 at 8:52:34 AM UTC-4, Larry Evans wrote:
>>>
>>> On 03/11/2018 06:24 AM, Barry Revzin wrote:
>>>> Python allows you to have multiple imports on a single line, as you're
>>> proposing here.
>>>>
>>>> Python's style guide, PEP-8, says not to do it and to use one import
>>> per line: https://www.python.org/dev/peps/pep-0008/#imports
>>>>
>>> Doesn't this style of using one import per line violate the DRY
>>> principle:
>>>
>>> https://en.wikipedia.org/wiki/Don%27t_repeat_yourself
>>>
>>> For example:
>>>
>>>     import os
>>>     import sys
>>>
>>
>> If that's DRY, then DRY is unusable:
>>
>> f(a,b);
>> ...
>> f(c,d); // oops.We should never call f() anywhere else because DRY.
>>
>>
> Hear hear
> 
OK, to be more explicit:

There's no *semantic* difference between:

   import os
   import sys

and:

   import os,sys

but there *is* a semantic difference between:

   f(a);
   ...
   f(b);

and:

   f(a),(b);
   ...

which isn't even legal.

Thus:

   f(a);
   ...
   f(b);

is *not* violating DRY.





-- 
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/p83nu3%24ifd%241%40blaine.gmane.org.

.
