220 41041 <CAANG=kXtb_c2Std-CZP47BbOV1KFyfaJObZ4k7emimqcD4pBGA@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: =?UTF-8?B?R2HFoXBlciBBxb5tYW4=?= <gasper.azman@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: down with namespace braces
Date: Fri, 16 Nov 2018 11:02:07 +0000
Lines: 168
Approved: news@gmane.org
Message-ID: <CAANG=kXtb_c2Std-CZP47BbOV1KFyfaJObZ4k7emimqcD4pBGA@mail.gmail.com>
References: <e3afb61b-bdbf-45a8-b914-d555848baade@isocpp.org>
 <1edc199f-e6a7-4cf0-92f7-1823d086824a@isocpp.org> <5574e659-76a1-4675-bf94-cbf5cfcc00a6@isocpp.org>
 <8b6f9f0b-31de-41a4-aae7-1649c9779afb@isocpp.org> <CAANG=kXg-UmmmUEixSxAT==y9E+hxsGzejaVbBfXkGNLO+Qmcg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000d5e71e057ac619a7"
X-Trace: blaine.gmane.org 1542366015 22381 195.159.176.226 (16 Nov 2018 11:00:15 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 16 Nov 2018 11:00:15 +0000 (UTC)
Cc: julien@nanolive.ch
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDRYVJ6TVYBRBPGHXLPQKGQEV5MOOII@isocpp.org Fri Nov 16 12:00:11 2018
Return-path: <std-proposals+bncBDRYVJ6TVYBRBPGHXLPQKGQEV5MOOII@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lj1-f199.google.com ([209.85.208.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDRYVJ6TVYBRBPGHXLPQKGQEV5MOOII@isocpp.org>)
	id 1gNbr8-0005f1-JQ
	for gclcip-std-proposals@m.gmane.org; Fri, 16 Nov 2018 12:00:10 +0100
Original-Received: by mail-lj1-f199.google.com with SMTP id v74-v6sf9912894lje.6
        for <gclcip-std-proposals@m.gmane.org>; Fri, 16 Nov 2018 03:02:21 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1542366141; cv=pass;
        d=google.com; s=arc-20160816;
        b=OIwzvGppHX2WYEklMPBJJVuPCuU5IrKGok3qyke9PkFyHWkFnljntb88tVeZKWQipD
         vQUB7QGMTR4lwCqmJDkN8UcJNtYqtNetj1uqJgq4drYGp25aKrTFh1YQLpigLCGCxdUn
         a4fbLmpi10PQJm5MxIlMcjMey0LHmiGz79wioMeHw3YQ6XIyBjFbsqTGxtC/dpRKDFa8
         RTKnAUZp195xLZX/QandyDh182qbxcntzzFqg3IrlmI42qEutIcSOfJQEPG2fPq578iT
         RbhlLnufpZLRfspebKw8cNLp2PNmJ1I9/nyFbtgpy4Z6hAqRWF8bHdAu3eonYFRYRBia
         xTqA==
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:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:dkim-signature;
        bh=3J/BbBkAYrgZ6pn5A4i6eRZSZTAG/HBx26D5h4hd9rU=;
        b=W4T3XrGdHfmpVOBEoKkbRSwUpmBGwZU9EV56EqPdFGD/u+vhPozY2OJhgxcEI8tSxC
         o31fPIbH2CLMaakrQMi+icdROIohYLZFuCxIwLiYRJ+US0qt62CmGBOJjMu+k/3z0OYT
         YGPeUq01XeEwy8dDrsiNdAQ9/3GOtAt4KSdFE/md1Vd7msQUmGtaSnYphsSRMtuuP2yn
         VFkY1ji9wkAzzSI1q9YWyLE/8J43+j/Ew+Q8EOYrVRX3Yig99zgp6G2OLVYIFLco2i6L
         SvmyKXOPblE11E3ss2KcNmAyW64R0BWn1KWzruFg5OCbu1yJSBJtx125IxkXte8//+rt
         ZIaw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=vhxE6xya;
       spf=pass (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=gasper.azman@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
         :cc: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=3J/BbBkAYrgZ6pn5A4i6eRZSZTAG/HBx26D5h4hd9rU=;
        b=BF1kWDIBpwvNzJXxq5AJ7T6JIohWxO28zXHBs0+gQlA0vXCSy6INWTBxam72bRtiBi
         3/tPAhH8EMqkCl7NAHuqBAZr+Zex6tdt1q+HhqZrYataDBPT7k7Os9hgrf+YNvxLpFzB
         cQsWZAbyU2eBWg2+LmrkTvVIE7YdyIxOGo3b3HG8L7JIJTzRaz7kFZgGvu4jviurpIWx
         /xPw+cLNM/ox5H3TEzKjznljFDNCfwvtOQ0fUUIo+sfrq39SpH3b+Ic+/V7iUl9W+5eQ
         uDCNmIlu/2+UF+3VysbVSojnBDK8WYWcDNSwtHACBdmecbVglagqU6tJkVyMF3xuYTDW
         +51w==
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:cc: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=3J/BbBkAYrgZ6pn5A4i6eRZSZTAG/HBx26D5h4hd9rU=;
        b=FsJSx/7M7oMQ07LPPFgZqv1fa0JjGl5y8rAz+JnmD351hJ0vb878rJCy/MfD3iSyDD
         QAiZIgrwIxPgfpkxY3JGJhWW15G0IGQRVqRZZxuWwkjtGgYCBhdPB1hXP/B3PGc1UZgQ
         /Fi+el8/qkOgBEKeuXnYMbeIOID8fpxHI0L2iIhbt+WQvhQOyRhWSC1GyAwMGQZm8rp3
         l0L3rx94iurmGEX94eDHIV3yKDztnBcum8rIeanfE+CouW0X2RSx1LZ2HxZFp7hjawRb
         AJmVU097/SR+ua9MWE5XwDCJ5U+xyJbtWbfPZev5NY7YeeeThf0Wco8xuy+YyRcylKCE
         pSuw==
X-Gm-Message-State: AGRZ1gK3lsaYSoNdNDGPKo/4BjlOhr6SYfy+yOlkQ3dSpNw4DRuIwXX0
	+I++B8MfgdbsclNoCdW/7ezM4Q==
X-Google-Smtp-Source: AJdET5dw9KuuFyj94cPCIaf+oMHhCmZTytZkitC5Q19gliNzSy6+yznOIDh07/9dBB+95hRe9LivEA==
X-Received: by 2002:a19:d8c6:: with SMTP id r67mr482966lfi.3.1542366141245;
        Fri, 16 Nov 2018 03:02:21 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a2e:9691:: with SMTP id q17-v6ls930893lji.2.gmail; Fri, 16
 Nov 2018 03:02:19 -0800 (PST)
X-Received: by 2002:a2e:4218:: with SMTP id p24-v6mr5685614lja.58.1542366139744;
        Fri, 16 Nov 2018 03:02:19 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1542366139; cv=none;
        d=google.com; s=arc-20160816;
        b=h3QJgdZkEHMJqCIpjCzpi9JfaRP4ZTEPk8TOYEvVEB0t80k1Z5KgON85cyzhHxjErx
         ArDpYvejaW1Tl9N7q6eipWJdgmJhEmswm1O+KPWuLFdhvt0HtyZ+ly62ncAjKsX4abQi
         QBUCh4m2EypBaAGh+85Yk+dBhK1WcmjMPO9xj3tPxTl2XfBoV0LQmUUO+PPE6fzR28XG
         GHGpxycms8X29B00A/JpKZF8fO+UgTEDrdnsaantYsJbnVtcYtdfs22t6kXh1HJgnmRZ
         IzxwuMmIjD0kipJ16njBRYX6sXnEdQFFpyoZ9ZPJtj8MD7lMKuxXP5pVWtCy0xFUN+hA
         irIA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:dkim-signature;
        bh=RgXqmNRpEC1OjzcGzq0aEqNMLzC+dEpradegGXdRbZQ=;
        b=xKMUhdJ6FnTwrzX9tRTT3wCyOzvLiUb8+Pop/j/vUxsCNK/iwk731ysdduyW6JNok/
         nW73Gjd16SBhzpdqR97RePsFH5u1TuWRi7eDBq2xKIvrWzdapKP4norNGmrCkBzYamQd
         IdwDHuoBNZ4/UTd1eLzol2wK36zGYzovSJfbP4HY9jfFpxf0bvrGa7MN+zzCCn7+mKSM
         qVKoO3Oz4xeK6ztUTC4kdlNk+/aJzAv+O0iZTQG/sRC/n6CTSEAY5izm5Xy1gcFA0zWo
         P/KF07GF5xu6LbahBTHVInqEjAXgdkHXzcI6NSSpxcio4Kv0qALFMOMcR7HPzcXmF4Ul
         fk1w==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=vhxE6xya;
       spf=pass (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=gasper.azman@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 g21sor7563491lfj.22.2018.11.16.03.02.19
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Fri, 16 Nov 2018 03:02:19 -0800 (PST)
Received-SPF: pass (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a19:d5:: with SMTP id 204mr5025495lfa.116.1542366139113;
 Fri, 16 Nov 2018 03:02:19 -0800 (PST)
In-Reply-To: <CAANG=kXg-UmmmUEixSxAT==y9E+hxsGzejaVbBfXkGNLO+Qmcg@mail.gmail.com>
X-Original-Sender: gasper.azman@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=vhxE6xya;       spf=pass
 (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=gasper.azman@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:41041
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41041>

--000000000000d5e71e057ac619a7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

As promised. Would having this kind of editor support solve your issue?
https://youtrack.jetbrains.com/issue/CPP-14711

On Fri, Nov 16, 2018 at 10:35 AM Ga=C5=A1per A=C5=BEman <gasper.azman@gmail=
..com>
wrote:

> TOTALLY making a feature request to jetbrains to make clion display /* en=
d
> namespace NAMESPACE */ after a closing brace without modifying the file.
> Killer feature.
>
> On Fri, Nov 16, 2018 at 10:23 AM Victor Dyachenko <
> victor.dyachenko@gmail.com> wrote:
>
>> On Friday, November 16, 2018 at 1:13:37 PM UTC+3, jul...@nanolive.ch
>> wrote:
>>>
>>>
>>> Or, using clang-format (which I would definitely recommend), it would
>>> automatically add the comment
>>>
>>> namespace my_name_space {
>>>
>>> ////////////////////////////////////////////////////////////
>>> //////////////////
>>> class whatever
>>> {
>>> };
>>> ////////////////////////////////////////////////////////////
>>> //////////////////
>>>
>>> } // namespace my_name_space
>>>
>>
>> I strongly dislike duplicating identifiers (namespace name in this case)
>> because of such cases:
>>
>> namespace renamed_namespace {
>> ...
>> } // namespace my_name_space
>>
>> DRY! (Don't Repeat Yourself)
>>
>> --
>> You received this message because you are subscribed to the Google Group=
s
>> "ISO C++ Standard - Future Proposals" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n
>> 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/8b6f9f0b-31=
de-41a4-aae7-1649c9779afb%40isocpp.org
>> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/8b6f9f0b-3=
1de-41a4-aae7-1649c9779afb%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoo=
ter>
>> .
>>
>

--=20
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 e=
mail 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/CAANG%3DkXtb_c2Std-CZP47BbOV1KFyfaJObZ4k7emimqcD=
4pBGA%40mail.gmail.com.

--000000000000d5e71e057ac619a7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">As promised. Would having this kind of ed=
itor support solve your issue?<div><a href=3D"https://youtrack.jetbrains.co=
m/issue/CPP-14711">https://youtrack.jetbrains.com/issue/CPP-14711</a><br></=
div></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Fri, Nov=
 16, 2018 at 10:35 AM Ga=C5=A1per A=C5=BEman &lt;<a href=3D"mailto:gasper.a=
zman@gmail.com">gasper.azman@gmail.com</a>&gt; wrote:<br></div><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid=
;padding-left:1ex"><div dir=3D"ltr">TOTALLY making a feature request to jet=
brains to make clion display /* end namespace NAMESPACE */ after a closing =
brace without modifying the file. Killer feature.</div><br><div class=3D"gm=
ail_quote"><div dir=3D"ltr">On Fri, Nov 16, 2018 at 10:23 AM Victor Dyachen=
ko &lt;<a href=3D"mailto:victor.dyachenko@gmail.com" target=3D"_blank">vict=
or.dyachenko@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e=
x"><div dir=3D"ltr">On Friday, November 16, 2018 at 1:13:37 PM UTC+3, <a hr=
ef=3D"mailto:jul...@nanolive.ch" target=3D"_blank">jul...@nanolive.ch</a> w=
rote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;=
border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><br><div>Or, =
using clang-format (which I would definitely recommend), it would automatic=
ally add the comment</div><div><br></div><div><span style=3D"font-family:&q=
uot;courier new&quot;,monospace">namespace my_name_space {</span><br style=
=3D"font-family:&quot;courier new&quot;,monospace"><br style=3D"font-family=
:&quot;courier new&quot;,monospace"><span style=3D"font-family:&quot;courie=
r new&quot;,monospace">//////////////////////////////</span><span style=3D"=
font-family:&quot;courier new&quot;,monospace">////////////////////////////=
//</span><span style=3D"font-family:&quot;courier new&quot;,monospace">////=
//////////////</span><br style=3D"font-family:&quot;courier new&quot;,monos=
pace"><span style=3D"font-family:&quot;courier new&quot;,monospace">class w=
hatever</span><br style=3D"font-family:&quot;courier new&quot;,monospace"><=
span style=3D"font-family:&quot;courier new&quot;,monospace">{</span><br st=
yle=3D"font-family:&quot;courier new&quot;,monospace"><span style=3D"font-f=
amily:&quot;courier new&quot;,monospace">};</span><br style=3D"font-family:=
&quot;courier new&quot;,monospace"><span style=3D"font-family:&quot;courier=
 new&quot;,monospace">//////////////////////////////</span><span style=3D"f=
ont-family:&quot;courier new&quot;,monospace">/////////////////////////////=
/</span><span style=3D"font-family:&quot;courier new&quot;,monospace">/////=
/////////////</span><br style=3D"font-family:&quot;courier new&quot;,monosp=
ace"><br style=3D"font-family:&quot;courier new&quot;,monospace"><span styl=
e=3D"font-family:&quot;courier new&quot;,monospace">} // namespace=C2=A0</s=
pan><span style=3D"font-family:&quot;courier new&quot;,monospace">my_name_s=
pace</span><span style=3D"font-family:&quot;courier new&quot;,monospace">=
=C2=A0</span></div></div></blockquote><div><br></div><div>I strongly dislik=
e duplicating identifiers (namespace name in this case) because of such cas=
es:</div><div><br></div><div><span style=3D"font-family:&quot;courier new&q=
uot;,monospace">namespace renamed_namespace {<br></span></div><div><span st=
yle=3D"font-family:&quot;courier new&quot;,monospace">...<br></span></div><=
div><span style=3D"font-family:&quot;courier new&quot;,monospace">} // name=
space=C2=A0</span><span style=3D"font-family:&quot;courier new&quot;,monosp=
ace">my_name_space</span><span style=3D"font-family:&quot;courier new&quot;=
,monospace">=C2=A0</span><div><br></div><div>DRY! (Don&#39;t Repeat Yoursel=
f)<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/8b6f9f0b-31de-41a4-aae7-1649c9779afb%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/8b6f9f0b-31de-=
41a4-aae7-1649c9779afb%40isocpp.org</a>.<br>
</blockquote></div>
</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/CAANG%3DkXtb_c2Std-CZP47BbOV1KFyfaJOb=
Z4k7emimqcD4pBGA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAANG%3DkXtb_c2=
Std-CZP47BbOV1KFyfaJObZ4k7emimqcD4pBGA%40mail.gmail.com</a>.<br />

--000000000000d5e71e057ac619a7--

.
